<!doctype html>

<html>
<head>
  <link rel="shortcut icon" href="static/images/favicon.ico" type="image/x-icon">
  <title>test.pb.js (Closure Library API Documentation - JavaScript)</title>
  <link rel="stylesheet" href="static/css/base.css">
  <link rel="stylesheet" href="static/css/doc.css">
  <link rel="stylesheet" href="static/css/sidetree.css">
  <link rel="stylesheet" href="static/css/prettify.css">

  <script>
     var _staticFilePath = "static/";
  </script>

  <script src="static/js/doc.js">
  </script>

  <meta charset="utf8">
</head>

<body onload="prettyPrint()">

<div id="header">
  <div class="g-section g-tpl-50-50 g-split">
    <div class="g-unit g-first">
      <a id="logo" href="index.html">Closure Library API Documentation</a>
    </div>

    <div class="g-unit">
      <div class="g-c">
        <strong>Go to class or file:</strong>
        <input type="text" id="ac">
      </div>
    </div>
  </div>
</div>

<div class="clear"></div>

<h2><a href="closure_goog_proto2_test.pb.js.html">test.pb.js</a></h2>

<pre class="prettyprint lang-js">
<a name="line1"></a>// Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
<a name="line2"></a>// you may not use this file except in compliance with the License.
<a name="line3"></a>// You may obtain a copy of the License at
<a name="line4"></a>//
<a name="line5"></a>//     http://www.apache.org/licenses/LICENSE-2.0
<a name="line6"></a>//
<a name="line7"></a>// Unless required by applicable law or agreed to in writing, software
<a name="line8"></a>// distributed under the License is distributed on an &quot;AS IS&quot; BASIS,
<a name="line9"></a>// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<a name="line10"></a>// See the License for the specific language governing permissions and
<a name="line11"></a>// limitations under the License.
<a name="line12"></a>
<a name="line13"></a>// Protocol Buffer 2 Copyright 2008 Google Inc
<a name="line14"></a>// All other code copyright its respective owners(s).
<a name="line15"></a>
<a name="line16"></a>/**
<a name="line17"></a> * @fileoverview Generated Protocol Buffer code for file test.proto.
<a name="line18"></a> */
<a name="line19"></a>
<a name="line20"></a>goog.provide(&#39;proto2.TestAllTypes&#39;);
<a name="line21"></a>goog.provide(&#39;proto2.TestAllTypes.NestedMessage&#39;);
<a name="line22"></a>goog.provide(&#39;proto2.TestAllTypes.OptionalGroup&#39;);
<a name="line23"></a>goog.provide(&#39;proto2.TestAllTypes.RepeatedGroup&#39;);
<a name="line24"></a>
<a name="line25"></a>goog.require(&#39;goog.proto2.Message&#39;);
<a name="line26"></a>
<a name="line27"></a>/**
<a name="line28"></a> * Message TestAllTypes.
<a name="line29"></a> * @constructor
<a name="line30"></a> * @extends {goog.proto2.Message}
<a name="line31"></a> */
<a name="line32"></a>proto2.TestAllTypes = function() {
<a name="line33"></a>  goog.proto2.Message.apply(this);
<a name="line34"></a>};
<a name="line35"></a>
<a name="line36"></a>goog.inherits(proto2.TestAllTypes, goog.proto2.Message);
<a name="line37"></a>
<a name="line38"></a>/**
<a name="line39"></a> * Gets the value of the optional_int32 field.
<a name="line40"></a> * @return {number} The value.
<a name="line41"></a> */
<a name="line42"></a>proto2.TestAllTypes.prototype.getOptionalInt32 = function() {
<a name="line43"></a>  return /** @type {number} */ (this.get$Value(1));
<a name="line44"></a>};
<a name="line45"></a>
<a name="line46"></a>
<a name="line47"></a>/**
<a name="line48"></a> * Sets the value of the optional_int32 field.
<a name="line49"></a> * @param {number} value The value.
<a name="line50"></a> */
<a name="line51"></a>proto2.TestAllTypes.prototype.setOptionalInt32 = function(value) {
<a name="line52"></a>  this.set$Value(1, /** @type {Object} */ (value));
<a name="line53"></a>};
<a name="line54"></a>
<a name="line55"></a>
<a name="line56"></a>/**
<a name="line57"></a> * Returns whether the optional_int32 field has a value.
<a name="line58"></a> * @return {boolean} true if the field has a value.
<a name="line59"></a> */
<a name="line60"></a>proto2.TestAllTypes.prototype.hasOptionalInt32 = function() {
<a name="line61"></a>  return this.has$Value(1);
<a name="line62"></a>};
<a name="line63"></a>
<a name="line64"></a>
<a name="line65"></a>/**
<a name="line66"></a> * Gets the number of values in the optional_int32 field.
<a name="line67"></a> * @return {number}
<a name="line68"></a> */
<a name="line69"></a>proto2.TestAllTypes.prototype.optionalInt32Count = function() {
<a name="line70"></a>  return this.count$Values(1);
<a name="line71"></a>};
<a name="line72"></a>
<a name="line73"></a>
<a name="line74"></a>/**
<a name="line75"></a> * Clears the values in the optional_int32 field.
<a name="line76"></a> */
<a name="line77"></a>proto2.TestAllTypes.prototype.clearOptionalInt32 = function() {
<a name="line78"></a>  this.clear$Field(1);
<a name="line79"></a>};
<a name="line80"></a>
<a name="line81"></a>
<a name="line82"></a>/**
<a name="line83"></a> * Gets the value of the optional_int64 field.
<a name="line84"></a> * @return {number} The value.
<a name="line85"></a> */
<a name="line86"></a>proto2.TestAllTypes.prototype.getOptionalInt64 = function() {
<a name="line87"></a>  return /** @type {number} */ (this.get$Value(2));
<a name="line88"></a>};
<a name="line89"></a>
<a name="line90"></a>
<a name="line91"></a>/**
<a name="line92"></a> * Sets the value of the optional_int64 field.
<a name="line93"></a> * @param {number} value The value.
<a name="line94"></a> */
<a name="line95"></a>proto2.TestAllTypes.prototype.setOptionalInt64 = function(value) {
<a name="line96"></a>  this.set$Value(2, /** @type {Object} */ (value));
<a name="line97"></a>};
<a name="line98"></a>
<a name="line99"></a>
<a name="line100"></a>/**
<a name="line101"></a> * Returns whether the optional_int64 field has a value.
<a name="line102"></a> * @return {boolean} true if the field has a value.
<a name="line103"></a> */
<a name="line104"></a>proto2.TestAllTypes.prototype.hasOptionalInt64 = function() {
<a name="line105"></a>  return this.has$Value(2);
<a name="line106"></a>};
<a name="line107"></a>
<a name="line108"></a>
<a name="line109"></a>/**
<a name="line110"></a> * Gets the number of values in the optional_int64 field.
<a name="line111"></a> * @return {number}
<a name="line112"></a> */
<a name="line113"></a>proto2.TestAllTypes.prototype.optionalInt64Count = function() {
<a name="line114"></a>  return this.count$Values(2);
<a name="line115"></a>};
<a name="line116"></a>
<a name="line117"></a>
<a name="line118"></a>/**
<a name="line119"></a> * Clears the values in the optional_int64 field.
<a name="line120"></a> */
<a name="line121"></a>proto2.TestAllTypes.prototype.clearOptionalInt64 = function() {
<a name="line122"></a>  this.clear$Field(2);
<a name="line123"></a>};
<a name="line124"></a>
<a name="line125"></a>
<a name="line126"></a>/**
<a name="line127"></a> * Gets the value of the optional_uint32 field.
<a name="line128"></a> * @return {number} The value.
<a name="line129"></a> */
<a name="line130"></a>proto2.TestAllTypes.prototype.getOptionalUint32 = function() {
<a name="line131"></a>  return /** @type {number} */ (this.get$Value(3));
<a name="line132"></a>};
<a name="line133"></a>
<a name="line134"></a>
<a name="line135"></a>/**
<a name="line136"></a> * Sets the value of the optional_uint32 field.
<a name="line137"></a> * @param {number} value The value.
<a name="line138"></a> */
<a name="line139"></a>proto2.TestAllTypes.prototype.setOptionalUint32 = function(value) {
<a name="line140"></a>  this.set$Value(3, /** @type {Object} */ (value));
<a name="line141"></a>};
<a name="line142"></a>
<a name="line143"></a>
<a name="line144"></a>/**
<a name="line145"></a> * Returns whether the optional_uint32 field has a value.
<a name="line146"></a> * @return {boolean} true if the field has a value.
<a name="line147"></a> */
<a name="line148"></a>proto2.TestAllTypes.prototype.hasOptionalUint32 = function() {
<a name="line149"></a>  return this.has$Value(3);
<a name="line150"></a>};
<a name="line151"></a>
<a name="line152"></a>
<a name="line153"></a>/**
<a name="line154"></a> * Gets the number of values in the optional_uint32 field.
<a name="line155"></a> * @return {number}
<a name="line156"></a> */
<a name="line157"></a>proto2.TestAllTypes.prototype.optionalUint32Count = function() {
<a name="line158"></a>  return this.count$Values(3);
<a name="line159"></a>};
<a name="line160"></a>
<a name="line161"></a>
<a name="line162"></a>/**
<a name="line163"></a> * Clears the values in the optional_uint32 field.
<a name="line164"></a> */
<a name="line165"></a>proto2.TestAllTypes.prototype.clearOptionalUint32 = function() {
<a name="line166"></a>  this.clear$Field(3);
<a name="line167"></a>};
<a name="line168"></a>
<a name="line169"></a>
<a name="line170"></a>/**
<a name="line171"></a> * Gets the value of the optional_uint64 field.
<a name="line172"></a> * @return {number} The value.
<a name="line173"></a> */
<a name="line174"></a>proto2.TestAllTypes.prototype.getOptionalUint64 = function() {
<a name="line175"></a>  return /** @type {number} */ (this.get$Value(4));
<a name="line176"></a>};
<a name="line177"></a>
<a name="line178"></a>
<a name="line179"></a>/**
<a name="line180"></a> * Sets the value of the optional_uint64 field.
<a name="line181"></a> * @param {number} value The value.
<a name="line182"></a> */
<a name="line183"></a>proto2.TestAllTypes.prototype.setOptionalUint64 = function(value) {
<a name="line184"></a>  this.set$Value(4, /** @type {Object} */ (value));
<a name="line185"></a>};
<a name="line186"></a>
<a name="line187"></a>
<a name="line188"></a>/**
<a name="line189"></a> * Returns whether the optional_uint64 field has a value.
<a name="line190"></a> * @return {boolean} true if the field has a value.
<a name="line191"></a> */
<a name="line192"></a>proto2.TestAllTypes.prototype.hasOptionalUint64 = function() {
<a name="line193"></a>  return this.has$Value(4);
<a name="line194"></a>};
<a name="line195"></a>
<a name="line196"></a>
<a name="line197"></a>/**
<a name="line198"></a> * Gets the number of values in the optional_uint64 field.
<a name="line199"></a> * @return {number}
<a name="line200"></a> */
<a name="line201"></a>proto2.TestAllTypes.prototype.optionalUint64Count = function() {
<a name="line202"></a>  return this.count$Values(4);
<a name="line203"></a>};
<a name="line204"></a>
<a name="line205"></a>
<a name="line206"></a>/**
<a name="line207"></a> * Clears the values in the optional_uint64 field.
<a name="line208"></a> */
<a name="line209"></a>proto2.TestAllTypes.prototype.clearOptionalUint64 = function() {
<a name="line210"></a>  this.clear$Field(4);
<a name="line211"></a>};
<a name="line212"></a>
<a name="line213"></a>
<a name="line214"></a>/**
<a name="line215"></a> * Gets the value of the optional_sint32 field.
<a name="line216"></a> * @return {number} The value.
<a name="line217"></a> */
<a name="line218"></a>proto2.TestAllTypes.prototype.getOptionalSint32 = function() {
<a name="line219"></a>  return /** @type {number} */ (this.get$Value(5));
<a name="line220"></a>};
<a name="line221"></a>
<a name="line222"></a>
<a name="line223"></a>/**
<a name="line224"></a> * Sets the value of the optional_sint32 field.
<a name="line225"></a> * @param {number} value The value.
<a name="line226"></a> */
<a name="line227"></a>proto2.TestAllTypes.prototype.setOptionalSint32 = function(value) {
<a name="line228"></a>  this.set$Value(5, /** @type {Object} */ (value));
<a name="line229"></a>};
<a name="line230"></a>
<a name="line231"></a>
<a name="line232"></a>/**
<a name="line233"></a> * Returns whether the optional_sint32 field has a value.
<a name="line234"></a> * @return {boolean} true if the field has a value.
<a name="line235"></a> */
<a name="line236"></a>proto2.TestAllTypes.prototype.hasOptionalSint32 = function() {
<a name="line237"></a>  return this.has$Value(5);
<a name="line238"></a>};
<a name="line239"></a>
<a name="line240"></a>
<a name="line241"></a>/**
<a name="line242"></a> * Gets the number of values in the optional_sint32 field.
<a name="line243"></a> * @return {number}
<a name="line244"></a> */
<a name="line245"></a>proto2.TestAllTypes.prototype.optionalSint32Count = function() {
<a name="line246"></a>  return this.count$Values(5);
<a name="line247"></a>};
<a name="line248"></a>
<a name="line249"></a>
<a name="line250"></a>/**
<a name="line251"></a> * Clears the values in the optional_sint32 field.
<a name="line252"></a> */
<a name="line253"></a>proto2.TestAllTypes.prototype.clearOptionalSint32 = function() {
<a name="line254"></a>  this.clear$Field(5);
<a name="line255"></a>};
<a name="line256"></a>
<a name="line257"></a>
<a name="line258"></a>/**
<a name="line259"></a> * Gets the value of the optional_sint64 field.
<a name="line260"></a> * @return {number} The value.
<a name="line261"></a> */
<a name="line262"></a>proto2.TestAllTypes.prototype.getOptionalSint64 = function() {
<a name="line263"></a>  return /** @type {number} */ (this.get$Value(6));
<a name="line264"></a>};
<a name="line265"></a>
<a name="line266"></a>
<a name="line267"></a>/**
<a name="line268"></a> * Sets the value of the optional_sint64 field.
<a name="line269"></a> * @param {number} value The value.
<a name="line270"></a> */
<a name="line271"></a>proto2.TestAllTypes.prototype.setOptionalSint64 = function(value) {
<a name="line272"></a>  this.set$Value(6, /** @type {Object} */ (value));
<a name="line273"></a>};
<a name="line274"></a>
<a name="line275"></a>
<a name="line276"></a>/**
<a name="line277"></a> * Returns whether the optional_sint64 field has a value.
<a name="line278"></a> * @return {boolean} true if the field has a value.
<a name="line279"></a> */
<a name="line280"></a>proto2.TestAllTypes.prototype.hasOptionalSint64 = function() {
<a name="line281"></a>  return this.has$Value(6);
<a name="line282"></a>};
<a name="line283"></a>
<a name="line284"></a>
<a name="line285"></a>/**
<a name="line286"></a> * Gets the number of values in the optional_sint64 field.
<a name="line287"></a> * @return {number}
<a name="line288"></a> */
<a name="line289"></a>proto2.TestAllTypes.prototype.optionalSint64Count = function() {
<a name="line290"></a>  return this.count$Values(6);
<a name="line291"></a>};
<a name="line292"></a>
<a name="line293"></a>
<a name="line294"></a>/**
<a name="line295"></a> * Clears the values in the optional_sint64 field.
<a name="line296"></a> */
<a name="line297"></a>proto2.TestAllTypes.prototype.clearOptionalSint64 = function() {
<a name="line298"></a>  this.clear$Field(6);
<a name="line299"></a>};
<a name="line300"></a>
<a name="line301"></a>
<a name="line302"></a>/**
<a name="line303"></a> * Gets the value of the optional_fixed32 field.
<a name="line304"></a> * @return {number} The value.
<a name="line305"></a> */
<a name="line306"></a>proto2.TestAllTypes.prototype.getOptionalFixed32 = function() {
<a name="line307"></a>  return /** @type {number} */ (this.get$Value(7));
<a name="line308"></a>};
<a name="line309"></a>
<a name="line310"></a>
<a name="line311"></a>/**
<a name="line312"></a> * Sets the value of the optional_fixed32 field.
<a name="line313"></a> * @param {number} value The value.
<a name="line314"></a> */
<a name="line315"></a>proto2.TestAllTypes.prototype.setOptionalFixed32 = function(value) {
<a name="line316"></a>  this.set$Value(7, /** @type {Object} */ (value));
<a name="line317"></a>};
<a name="line318"></a>
<a name="line319"></a>
<a name="line320"></a>/**
<a name="line321"></a> * Returns whether the optional_fixed32 field has a value.
<a name="line322"></a> * @return {boolean} true if the field has a value.
<a name="line323"></a> */
<a name="line324"></a>proto2.TestAllTypes.prototype.hasOptionalFixed32 = function() {
<a name="line325"></a>  return this.has$Value(7);
<a name="line326"></a>};
<a name="line327"></a>
<a name="line328"></a>
<a name="line329"></a>/**
<a name="line330"></a> * Gets the number of values in the optional_fixed32 field.
<a name="line331"></a> * @return {number}
<a name="line332"></a> */
<a name="line333"></a>proto2.TestAllTypes.prototype.optionalFixed32Count = function() {
<a name="line334"></a>  return this.count$Values(7);
<a name="line335"></a>};
<a name="line336"></a>
<a name="line337"></a>
<a name="line338"></a>/**
<a name="line339"></a> * Clears the values in the optional_fixed32 field.
<a name="line340"></a> */
<a name="line341"></a>proto2.TestAllTypes.prototype.clearOptionalFixed32 = function() {
<a name="line342"></a>  this.clear$Field(7);
<a name="line343"></a>};
<a name="line344"></a>
<a name="line345"></a>
<a name="line346"></a>/**
<a name="line347"></a> * Gets the value of the optional_fixed64 field.
<a name="line348"></a> * @return {number} The value.
<a name="line349"></a> */
<a name="line350"></a>proto2.TestAllTypes.prototype.getOptionalFixed64 = function() {
<a name="line351"></a>  return /** @type {number} */ (this.get$Value(8));
<a name="line352"></a>};
<a name="line353"></a>
<a name="line354"></a>
<a name="line355"></a>/**
<a name="line356"></a> * Sets the value of the optional_fixed64 field.
<a name="line357"></a> * @param {number} value The value.
<a name="line358"></a> */
<a name="line359"></a>proto2.TestAllTypes.prototype.setOptionalFixed64 = function(value) {
<a name="line360"></a>  this.set$Value(8, /** @type {Object} */ (value));
<a name="line361"></a>};
<a name="line362"></a>
<a name="line363"></a>
<a name="line364"></a>/**
<a name="line365"></a> * Returns whether the optional_fixed64 field has a value.
<a name="line366"></a> * @return {boolean} true if the field has a value.
<a name="line367"></a> */
<a name="line368"></a>proto2.TestAllTypes.prototype.hasOptionalFixed64 = function() {
<a name="line369"></a>  return this.has$Value(8);
<a name="line370"></a>};
<a name="line371"></a>
<a name="line372"></a>
<a name="line373"></a>/**
<a name="line374"></a> * Gets the number of values in the optional_fixed64 field.
<a name="line375"></a> * @return {number}
<a name="line376"></a> */
<a name="line377"></a>proto2.TestAllTypes.prototype.optionalFixed64Count = function() {
<a name="line378"></a>  return this.count$Values(8);
<a name="line379"></a>};
<a name="line380"></a>
<a name="line381"></a>
<a name="line382"></a>/**
<a name="line383"></a> * Clears the values in the optional_fixed64 field.
<a name="line384"></a> */
<a name="line385"></a>proto2.TestAllTypes.prototype.clearOptionalFixed64 = function() {
<a name="line386"></a>  this.clear$Field(8);
<a name="line387"></a>};
<a name="line388"></a>
<a name="line389"></a>
<a name="line390"></a>/**
<a name="line391"></a> * Gets the value of the optional_sfixed32 field.
<a name="line392"></a> * @return {number} The value.
<a name="line393"></a> */
<a name="line394"></a>proto2.TestAllTypes.prototype.getOptionalSfixed32 = function() {
<a name="line395"></a>  return /** @type {number} */ (this.get$Value(9));
<a name="line396"></a>};
<a name="line397"></a>
<a name="line398"></a>
<a name="line399"></a>/**
<a name="line400"></a> * Sets the value of the optional_sfixed32 field.
<a name="line401"></a> * @param {number} value The value.
<a name="line402"></a> */
<a name="line403"></a>proto2.TestAllTypes.prototype.setOptionalSfixed32 = function(value) {
<a name="line404"></a>  this.set$Value(9, /** @type {Object} */ (value));
<a name="line405"></a>};
<a name="line406"></a>
<a name="line407"></a>
<a name="line408"></a>/**
<a name="line409"></a> * Returns whether the optional_sfixed32 field has a value.
<a name="line410"></a> * @return {boolean} true if the field has a value.
<a name="line411"></a> */
<a name="line412"></a>proto2.TestAllTypes.prototype.hasOptionalSfixed32 = function() {
<a name="line413"></a>  return this.has$Value(9);
<a name="line414"></a>};
<a name="line415"></a>
<a name="line416"></a>
<a name="line417"></a>/**
<a name="line418"></a> * Gets the number of values in the optional_sfixed32 field.
<a name="line419"></a> * @return {number}
<a name="line420"></a> */
<a name="line421"></a>proto2.TestAllTypes.prototype.optionalSfixed32Count = function() {
<a name="line422"></a>  return this.count$Values(9);
<a name="line423"></a>};
<a name="line424"></a>
<a name="line425"></a>
<a name="line426"></a>/**
<a name="line427"></a> * Clears the values in the optional_sfixed32 field.
<a name="line428"></a> */
<a name="line429"></a>proto2.TestAllTypes.prototype.clearOptionalSfixed32 = function() {
<a name="line430"></a>  this.clear$Field(9);
<a name="line431"></a>};
<a name="line432"></a>
<a name="line433"></a>
<a name="line434"></a>/**
<a name="line435"></a> * Gets the value of the optional_sfixed64 field.
<a name="line436"></a> * @return {number} The value.
<a name="line437"></a> */
<a name="line438"></a>proto2.TestAllTypes.prototype.getOptionalSfixed64 = function() {
<a name="line439"></a>  return /** @type {number} */ (this.get$Value(10));
<a name="line440"></a>};
<a name="line441"></a>
<a name="line442"></a>
<a name="line443"></a>/**
<a name="line444"></a> * Sets the value of the optional_sfixed64 field.
<a name="line445"></a> * @param {number} value The value.
<a name="line446"></a> */
<a name="line447"></a>proto2.TestAllTypes.prototype.setOptionalSfixed64 = function(value) {
<a name="line448"></a>  this.set$Value(10, /** @type {Object} */ (value));
<a name="line449"></a>};
<a name="line450"></a>
<a name="line451"></a>
<a name="line452"></a>/**
<a name="line453"></a> * Returns whether the optional_sfixed64 field has a value.
<a name="line454"></a> * @return {boolean} true if the field has a value.
<a name="line455"></a> */
<a name="line456"></a>proto2.TestAllTypes.prototype.hasOptionalSfixed64 = function() {
<a name="line457"></a>  return this.has$Value(10);
<a name="line458"></a>};
<a name="line459"></a>
<a name="line460"></a>
<a name="line461"></a>/**
<a name="line462"></a> * Gets the number of values in the optional_sfixed64 field.
<a name="line463"></a> * @return {number}
<a name="line464"></a> */
<a name="line465"></a>proto2.TestAllTypes.prototype.optionalSfixed64Count = function() {
<a name="line466"></a>  return this.count$Values(10);
<a name="line467"></a>};
<a name="line468"></a>
<a name="line469"></a>
<a name="line470"></a>/**
<a name="line471"></a> * Clears the values in the optional_sfixed64 field.
<a name="line472"></a> */
<a name="line473"></a>proto2.TestAllTypes.prototype.clearOptionalSfixed64 = function() {
<a name="line474"></a>  this.clear$Field(10);
<a name="line475"></a>};
<a name="line476"></a>
<a name="line477"></a>
<a name="line478"></a>/**
<a name="line479"></a> * Gets the value of the optional_float field.
<a name="line480"></a> * @return {number} The value.
<a name="line481"></a> */
<a name="line482"></a>proto2.TestAllTypes.prototype.getOptionalFloat = function() {
<a name="line483"></a>  return /** @type {number} */ (this.get$Value(11));
<a name="line484"></a>};
<a name="line485"></a>
<a name="line486"></a>
<a name="line487"></a>/**
<a name="line488"></a> * Sets the value of the optional_float field.
<a name="line489"></a> * @param {number} value The value.
<a name="line490"></a> */
<a name="line491"></a>proto2.TestAllTypes.prototype.setOptionalFloat = function(value) {
<a name="line492"></a>  this.set$Value(11, /** @type {Object} */ (value));
<a name="line493"></a>};
<a name="line494"></a>
<a name="line495"></a>
<a name="line496"></a>/**
<a name="line497"></a> * Returns whether the optional_float field has a value.
<a name="line498"></a> * @return {boolean} true if the field has a value.
<a name="line499"></a> */
<a name="line500"></a>proto2.TestAllTypes.prototype.hasOptionalFloat = function() {
<a name="line501"></a>  return this.has$Value(11);
<a name="line502"></a>};
<a name="line503"></a>
<a name="line504"></a>
<a name="line505"></a>/**
<a name="line506"></a> * Gets the number of values in the optional_float field.
<a name="line507"></a> * @return {number}
<a name="line508"></a> */
<a name="line509"></a>proto2.TestAllTypes.prototype.optionalFloatCount = function() {
<a name="line510"></a>  return this.count$Values(11);
<a name="line511"></a>};
<a name="line512"></a>
<a name="line513"></a>
<a name="line514"></a>/**
<a name="line515"></a> * Clears the values in the optional_float field.
<a name="line516"></a> */
<a name="line517"></a>proto2.TestAllTypes.prototype.clearOptionalFloat = function() {
<a name="line518"></a>  this.clear$Field(11);
<a name="line519"></a>};
<a name="line520"></a>
<a name="line521"></a>
<a name="line522"></a>/**
<a name="line523"></a> * Gets the value of the optional_double field.
<a name="line524"></a> * @return {number} The value.
<a name="line525"></a> */
<a name="line526"></a>proto2.TestAllTypes.prototype.getOptionalDouble = function() {
<a name="line527"></a>  return /** @type {number} */ (this.get$Value(12));
<a name="line528"></a>};
<a name="line529"></a>
<a name="line530"></a>
<a name="line531"></a>/**
<a name="line532"></a> * Sets the value of the optional_double field.
<a name="line533"></a> * @param {number} value The value.
<a name="line534"></a> */
<a name="line535"></a>proto2.TestAllTypes.prototype.setOptionalDouble = function(value) {
<a name="line536"></a>  this.set$Value(12, /** @type {Object} */ (value));
<a name="line537"></a>};
<a name="line538"></a>
<a name="line539"></a>
<a name="line540"></a>/**
<a name="line541"></a> * Returns whether the optional_double field has a value.
<a name="line542"></a> * @return {boolean} true if the field has a value.
<a name="line543"></a> */
<a name="line544"></a>proto2.TestAllTypes.prototype.hasOptionalDouble = function() {
<a name="line545"></a>  return this.has$Value(12);
<a name="line546"></a>};
<a name="line547"></a>
<a name="line548"></a>
<a name="line549"></a>/**
<a name="line550"></a> * Gets the number of values in the optional_double field.
<a name="line551"></a> * @return {number}
<a name="line552"></a> */
<a name="line553"></a>proto2.TestAllTypes.prototype.optionalDoubleCount = function() {
<a name="line554"></a>  return this.count$Values(12);
<a name="line555"></a>};
<a name="line556"></a>
<a name="line557"></a>
<a name="line558"></a>/**
<a name="line559"></a> * Clears the values in the optional_double field.
<a name="line560"></a> */
<a name="line561"></a>proto2.TestAllTypes.prototype.clearOptionalDouble = function() {
<a name="line562"></a>  this.clear$Field(12);
<a name="line563"></a>};
<a name="line564"></a>
<a name="line565"></a>
<a name="line566"></a>/**
<a name="line567"></a> * Gets the value of the optional_bool field.
<a name="line568"></a> * @return {boolean} The value.
<a name="line569"></a> */
<a name="line570"></a>proto2.TestAllTypes.prototype.getOptionalBool = function() {
<a name="line571"></a>  return /** @type {boolean} */ (this.get$Value(13));
<a name="line572"></a>};
<a name="line573"></a>
<a name="line574"></a>
<a name="line575"></a>/**
<a name="line576"></a> * Sets the value of the optional_bool field.
<a name="line577"></a> * @param {boolean} value The value.
<a name="line578"></a> */
<a name="line579"></a>proto2.TestAllTypes.prototype.setOptionalBool = function(value) {
<a name="line580"></a>  this.set$Value(13, /** @type {Object} */ (value));
<a name="line581"></a>};
<a name="line582"></a>
<a name="line583"></a>
<a name="line584"></a>/**
<a name="line585"></a> * Returns whether the optional_bool field has a value.
<a name="line586"></a> * @return {boolean} true if the field has a value.
<a name="line587"></a> */
<a name="line588"></a>proto2.TestAllTypes.prototype.hasOptionalBool = function() {
<a name="line589"></a>  return this.has$Value(13);
<a name="line590"></a>};
<a name="line591"></a>
<a name="line592"></a>
<a name="line593"></a>/**
<a name="line594"></a> * Gets the number of values in the optional_bool field.
<a name="line595"></a> * @return {number}
<a name="line596"></a> */
<a name="line597"></a>proto2.TestAllTypes.prototype.optionalBoolCount = function() {
<a name="line598"></a>  return this.count$Values(13);
<a name="line599"></a>};
<a name="line600"></a>
<a name="line601"></a>
<a name="line602"></a>/**
<a name="line603"></a> * Clears the values in the optional_bool field.
<a name="line604"></a> */
<a name="line605"></a>proto2.TestAllTypes.prototype.clearOptionalBool = function() {
<a name="line606"></a>  this.clear$Field(13);
<a name="line607"></a>};
<a name="line608"></a>
<a name="line609"></a>
<a name="line610"></a>/**
<a name="line611"></a> * Gets the value of the optional_string field.
<a name="line612"></a> * @return {string} The value.
<a name="line613"></a> */
<a name="line614"></a>proto2.TestAllTypes.prototype.getOptionalString = function() {
<a name="line615"></a>  return /** @type {string} */ (this.get$Value(14));
<a name="line616"></a>};
<a name="line617"></a>
<a name="line618"></a>
<a name="line619"></a>/**
<a name="line620"></a> * Sets the value of the optional_string field.
<a name="line621"></a> * @param {string} value The value.
<a name="line622"></a> */
<a name="line623"></a>proto2.TestAllTypes.prototype.setOptionalString = function(value) {
<a name="line624"></a>  this.set$Value(14, /** @type {Object} */ (value));
<a name="line625"></a>};
<a name="line626"></a>
<a name="line627"></a>
<a name="line628"></a>/**
<a name="line629"></a> * Returns whether the optional_string field has a value.
<a name="line630"></a> * @return {boolean} true if the field has a value.
<a name="line631"></a> */
<a name="line632"></a>proto2.TestAllTypes.prototype.hasOptionalString = function() {
<a name="line633"></a>  return this.has$Value(14);
<a name="line634"></a>};
<a name="line635"></a>
<a name="line636"></a>
<a name="line637"></a>/**
<a name="line638"></a> * Gets the number of values in the optional_string field.
<a name="line639"></a> * @return {number}
<a name="line640"></a> */
<a name="line641"></a>proto2.TestAllTypes.prototype.optionalStringCount = function() {
<a name="line642"></a>  return this.count$Values(14);
<a name="line643"></a>};
<a name="line644"></a>
<a name="line645"></a>
<a name="line646"></a>/**
<a name="line647"></a> * Clears the values in the optional_string field.
<a name="line648"></a> */
<a name="line649"></a>proto2.TestAllTypes.prototype.clearOptionalString = function() {
<a name="line650"></a>  this.clear$Field(14);
<a name="line651"></a>};
<a name="line652"></a>
<a name="line653"></a>
<a name="line654"></a>/**
<a name="line655"></a> * Gets the value of the optional_bytes field.
<a name="line656"></a> * @return {string} The value.
<a name="line657"></a> */
<a name="line658"></a>proto2.TestAllTypes.prototype.getOptionalBytes = function() {
<a name="line659"></a>  return /** @type {string} */ (this.get$Value(15));
<a name="line660"></a>};
<a name="line661"></a>
<a name="line662"></a>
<a name="line663"></a>/**
<a name="line664"></a> * Sets the value of the optional_bytes field.
<a name="line665"></a> * @param {string} value The value.
<a name="line666"></a> */
<a name="line667"></a>proto2.TestAllTypes.prototype.setOptionalBytes = function(value) {
<a name="line668"></a>  this.set$Value(15, /** @type {Object} */ (value));
<a name="line669"></a>};
<a name="line670"></a>
<a name="line671"></a>
<a name="line672"></a>/**
<a name="line673"></a> * Returns whether the optional_bytes field has a value.
<a name="line674"></a> * @return {boolean} true if the field has a value.
<a name="line675"></a> */
<a name="line676"></a>proto2.TestAllTypes.prototype.hasOptionalBytes = function() {
<a name="line677"></a>  return this.has$Value(15);
<a name="line678"></a>};
<a name="line679"></a>
<a name="line680"></a>
<a name="line681"></a>/**
<a name="line682"></a> * Gets the number of values in the optional_bytes field.
<a name="line683"></a> * @return {number}
<a name="line684"></a> */
<a name="line685"></a>proto2.TestAllTypes.prototype.optionalBytesCount = function() {
<a name="line686"></a>  return this.count$Values(15);
<a name="line687"></a>};
<a name="line688"></a>
<a name="line689"></a>
<a name="line690"></a>/**
<a name="line691"></a> * Clears the values in the optional_bytes field.
<a name="line692"></a> */
<a name="line693"></a>proto2.TestAllTypes.prototype.clearOptionalBytes = function() {
<a name="line694"></a>  this.clear$Field(15);
<a name="line695"></a>};
<a name="line696"></a>
<a name="line697"></a>
<a name="line698"></a>/**
<a name="line699"></a> * Gets the value of the optionalgroup field.
<a name="line700"></a> * @return {proto2.TestAllTypes.OptionalGroup} The value.
<a name="line701"></a> */
<a name="line702"></a>proto2.TestAllTypes.prototype.getOptionalgroup = function() {
<a name="line703"></a>  return /** @type {proto2.TestAllTypes.OptionalGroup} */ (this.get$Value(16));
<a name="line704"></a>};
<a name="line705"></a>
<a name="line706"></a>
<a name="line707"></a>/**
<a name="line708"></a> * Sets the value of the optionalgroup field.
<a name="line709"></a> * @param {proto2.TestAllTypes.OptionalGroup} value The value.
<a name="line710"></a> */
<a name="line711"></a>proto2.TestAllTypes.prototype.setOptionalgroup = function(value) {
<a name="line712"></a>  this.set$Value(16, /** @type {Object} */ (value));
<a name="line713"></a>};
<a name="line714"></a>
<a name="line715"></a>
<a name="line716"></a>/**
<a name="line717"></a> * Returns whether the optionalgroup field has a value.
<a name="line718"></a> * @return {boolean} true if the field has a value.
<a name="line719"></a> */
<a name="line720"></a>proto2.TestAllTypes.prototype.hasOptionalgroup = function() {
<a name="line721"></a>  return this.has$Value(16);
<a name="line722"></a>};
<a name="line723"></a>
<a name="line724"></a>
<a name="line725"></a>/**
<a name="line726"></a> * Gets the number of values in the optionalgroup field.
<a name="line727"></a> * @return {number}
<a name="line728"></a> */
<a name="line729"></a>proto2.TestAllTypes.prototype.optionalgroupCount = function() {
<a name="line730"></a>  return this.count$Values(16);
<a name="line731"></a>};
<a name="line732"></a>
<a name="line733"></a>
<a name="line734"></a>/**
<a name="line735"></a> * Clears the values in the optionalgroup field.
<a name="line736"></a> */
<a name="line737"></a>proto2.TestAllTypes.prototype.clearOptionalgroup = function() {
<a name="line738"></a>  this.clear$Field(16);
<a name="line739"></a>};
<a name="line740"></a>
<a name="line741"></a>
<a name="line742"></a>/**
<a name="line743"></a> * Gets the value of the optional_nested_message field.
<a name="line744"></a> * @return {proto2.TestAllTypes.NestedMessage} The value.
<a name="line745"></a> */
<a name="line746"></a>proto2.TestAllTypes.prototype.getOptionalNestedMessage = function() {
<a name="line747"></a>  return /** @type {proto2.TestAllTypes.NestedMessage} */ (this.get$Value(18));
<a name="line748"></a>};
<a name="line749"></a>
<a name="line750"></a>
<a name="line751"></a>/**
<a name="line752"></a> * Sets the value of the optional_nested_message field.
<a name="line753"></a> * @param {proto2.TestAllTypes.NestedMessage} value The value.
<a name="line754"></a> */
<a name="line755"></a>proto2.TestAllTypes.prototype.setOptionalNestedMessage = function(value) {
<a name="line756"></a>  this.set$Value(18, /** @type {Object} */ (value));
<a name="line757"></a>};
<a name="line758"></a>
<a name="line759"></a>
<a name="line760"></a>/**
<a name="line761"></a> * Returns whether the optional_nested_message field has a value.
<a name="line762"></a> * @return {boolean} true if the field has a value.
<a name="line763"></a> */
<a name="line764"></a>proto2.TestAllTypes.prototype.hasOptionalNestedMessage = function() {
<a name="line765"></a>  return this.has$Value(18);
<a name="line766"></a>};
<a name="line767"></a>
<a name="line768"></a>
<a name="line769"></a>/**
<a name="line770"></a> * Gets the number of values in the optional_nested_message field.
<a name="line771"></a> * @return {number}
<a name="line772"></a> */
<a name="line773"></a>proto2.TestAllTypes.prototype.optionalNestedMessageCount = function() {
<a name="line774"></a>  return this.count$Values(18);
<a name="line775"></a>};
<a name="line776"></a>
<a name="line777"></a>
<a name="line778"></a>/**
<a name="line779"></a> * Clears the values in the optional_nested_message field.
<a name="line780"></a> */
<a name="line781"></a>proto2.TestAllTypes.prototype.clearOptionalNestedMessage = function() {
<a name="line782"></a>  this.clear$Field(18);
<a name="line783"></a>};
<a name="line784"></a>
<a name="line785"></a>
<a name="line786"></a>/**
<a name="line787"></a> * Gets the value of the optional_nested_enum field.
<a name="line788"></a> * @return {proto2.TestAllTypes.NestedEnum} The value.
<a name="line789"></a> */
<a name="line790"></a>proto2.TestAllTypes.prototype.getOptionalNestedEnum = function() {
<a name="line791"></a>  return /** @type {proto2.TestAllTypes.NestedEnum} */ (this.get$Value(21));
<a name="line792"></a>};
<a name="line793"></a>
<a name="line794"></a>
<a name="line795"></a>/**
<a name="line796"></a> * Sets the value of the optional_nested_enum field.
<a name="line797"></a> * @param {proto2.TestAllTypes.NestedEnum} value The value.
<a name="line798"></a> */
<a name="line799"></a>proto2.TestAllTypes.prototype.setOptionalNestedEnum = function(value) {
<a name="line800"></a>  this.set$Value(21, /** @type {Object} */ (value));
<a name="line801"></a>};
<a name="line802"></a>
<a name="line803"></a>
<a name="line804"></a>/**
<a name="line805"></a> * Returns whether the optional_nested_enum field has a value.
<a name="line806"></a> * @return {boolean} true if the field has a value.
<a name="line807"></a> */
<a name="line808"></a>proto2.TestAllTypes.prototype.hasOptionalNestedEnum = function() {
<a name="line809"></a>  return this.has$Value(21);
<a name="line810"></a>};
<a name="line811"></a>
<a name="line812"></a>
<a name="line813"></a>/**
<a name="line814"></a> * Gets the number of values in the optional_nested_enum field.
<a name="line815"></a> * @return {number}
<a name="line816"></a> */
<a name="line817"></a>proto2.TestAllTypes.prototype.optionalNestedEnumCount = function() {
<a name="line818"></a>  return this.count$Values(21);
<a name="line819"></a>};
<a name="line820"></a>
<a name="line821"></a>
<a name="line822"></a>/**
<a name="line823"></a> * Clears the values in the optional_nested_enum field.
<a name="line824"></a> */
<a name="line825"></a>proto2.TestAllTypes.prototype.clearOptionalNestedEnum = function() {
<a name="line826"></a>  this.clear$Field(21);
<a name="line827"></a>};
<a name="line828"></a>
<a name="line829"></a>
<a name="line830"></a>/**
<a name="line831"></a> * Gets the value of the repeated_int32 field at the index given.
<a name="line832"></a> * @param {number} index The index to lookup.
<a name="line833"></a> * @return {number} The value.
<a name="line834"></a> */
<a name="line835"></a>proto2.TestAllTypes.prototype.getRepeatedInt32 = function(index) {
<a name="line836"></a>  return /** @type {number} */ (this.get$Value(31, index));
<a name="line837"></a>};
<a name="line838"></a>
<a name="line839"></a>
<a name="line840"></a>/**
<a name="line841"></a> * Adds a value to the repeated_int32 field.
<a name="line842"></a> * @param {number} value The value to add.
<a name="line843"></a> */
<a name="line844"></a>proto2.TestAllTypes.prototype.addRepeatedInt32 = function(value) {
<a name="line845"></a>  this.add$Value(31, /** @type {Object} */ (value));
<a name="line846"></a>};
<a name="line847"></a>
<a name="line848"></a>
<a name="line849"></a>/**
<a name="line850"></a> * Returns the array of values in the repeated_int32 field.
<a name="line851"></a> * @return {Array.&lt;number&gt;} The values in the field.
<a name="line852"></a> */
<a name="line853"></a>proto2.TestAllTypes.prototype.repeatedInt32Array = function() {
<a name="line854"></a>  return /** @type {Array.&lt;number&gt;} */ (this.array$Values(31));
<a name="line855"></a>};
<a name="line856"></a>
<a name="line857"></a>
<a name="line858"></a>/**
<a name="line859"></a> * Returns whether the repeated_int32 field has a value.
<a name="line860"></a> * @return {boolean} true if the field has a value.
<a name="line861"></a> */
<a name="line862"></a>proto2.TestAllTypes.prototype.hasRepeatedInt32 = function() {
<a name="line863"></a>  return this.has$Value(31);
<a name="line864"></a>};
<a name="line865"></a>
<a name="line866"></a>
<a name="line867"></a>/**
<a name="line868"></a> * Gets the number of values in the repeated_int32 field.
<a name="line869"></a> * @return {number}
<a name="line870"></a> */
<a name="line871"></a>proto2.TestAllTypes.prototype.repeatedInt32Count = function() {
<a name="line872"></a>  return this.count$Values(31);
<a name="line873"></a>};
<a name="line874"></a>
<a name="line875"></a>
<a name="line876"></a>/**
<a name="line877"></a> * Clears the values in the repeated_int32 field.
<a name="line878"></a> */
<a name="line879"></a>proto2.TestAllTypes.prototype.clearRepeatedInt32 = function() {
<a name="line880"></a>  this.clear$Field(31);
<a name="line881"></a>};
<a name="line882"></a>
<a name="line883"></a>
<a name="line884"></a>/**
<a name="line885"></a> * Gets the value of the repeated_int64 field at the index given.
<a name="line886"></a> * @param {number} index The index to lookup.
<a name="line887"></a> * @return {number} The value.
<a name="line888"></a> */
<a name="line889"></a>proto2.TestAllTypes.prototype.getRepeatedInt64 = function(index) {
<a name="line890"></a>  return /** @type {number} */ (this.get$Value(32, index));
<a name="line891"></a>};
<a name="line892"></a>
<a name="line893"></a>
<a name="line894"></a>/**
<a name="line895"></a> * Adds a value to the repeated_int64 field.
<a name="line896"></a> * @param {number} value The value to add.
<a name="line897"></a> */
<a name="line898"></a>proto2.TestAllTypes.prototype.addRepeatedInt64 = function(value) {
<a name="line899"></a>  this.add$Value(32, /** @type {Object} */ (value));
<a name="line900"></a>};
<a name="line901"></a>
<a name="line902"></a>
<a name="line903"></a>/**
<a name="line904"></a> * Returns the array of values in the repeated_int64 field.
<a name="line905"></a> * @return {Array.&lt;number&gt;} The values in the field.
<a name="line906"></a> */
<a name="line907"></a>proto2.TestAllTypes.prototype.repeatedInt64Array = function() {
<a name="line908"></a>  return /** @type {Array.&lt;number&gt;} */ (this.array$Values(32));
<a name="line909"></a>};
<a name="line910"></a>
<a name="line911"></a>
<a name="line912"></a>/**
<a name="line913"></a> * Returns whether the repeated_int64 field has a value.
<a name="line914"></a> * @return {boolean} true if the field has a value.
<a name="line915"></a> */
<a name="line916"></a>proto2.TestAllTypes.prototype.hasRepeatedInt64 = function() {
<a name="line917"></a>  return this.has$Value(32);
<a name="line918"></a>};
<a name="line919"></a>
<a name="line920"></a>
<a name="line921"></a>/**
<a name="line922"></a> * Gets the number of values in the repeated_int64 field.
<a name="line923"></a> * @return {number}
<a name="line924"></a> */
<a name="line925"></a>proto2.TestAllTypes.prototype.repeatedInt64Count = function() {
<a name="line926"></a>  return this.count$Values(32);
<a name="line927"></a>};
<a name="line928"></a>
<a name="line929"></a>
<a name="line930"></a>/**
<a name="line931"></a> * Clears the values in the repeated_int64 field.
<a name="line932"></a> */
<a name="line933"></a>proto2.TestAllTypes.prototype.clearRepeatedInt64 = function() {
<a name="line934"></a>  this.clear$Field(32);
<a name="line935"></a>};
<a name="line936"></a>
<a name="line937"></a>
<a name="line938"></a>/**
<a name="line939"></a> * Gets the value of the repeated_uint32 field at the index given.
<a name="line940"></a> * @param {number} index The index to lookup.
<a name="line941"></a> * @return {number} The value.
<a name="line942"></a> */
<a name="line943"></a>proto2.TestAllTypes.prototype.getRepeatedUint32 = function(index) {
<a name="line944"></a>  return /** @type {number} */ (this.get$Value(33, index));
<a name="line945"></a>};
<a name="line946"></a>
<a name="line947"></a>
<a name="line948"></a>/**
<a name="line949"></a> * Adds a value to the repeated_uint32 field.
<a name="line950"></a> * @param {number} value The value to add.
<a name="line951"></a> */
<a name="line952"></a>proto2.TestAllTypes.prototype.addRepeatedUint32 = function(value) {
<a name="line953"></a>  this.add$Value(33, /** @type {Object} */ (value));
<a name="line954"></a>};
<a name="line955"></a>
<a name="line956"></a>
<a name="line957"></a>/**
<a name="line958"></a> * Returns the array of values in the repeated_uint32 field.
<a name="line959"></a> * @return {Array.&lt;number&gt;} The values in the field.
<a name="line960"></a> */
<a name="line961"></a>proto2.TestAllTypes.prototype.repeatedUint32Array = function() {
<a name="line962"></a>  return /** @type {Array.&lt;number&gt;} */ (this.array$Values(33));
<a name="line963"></a>};
<a name="line964"></a>
<a name="line965"></a>
<a name="line966"></a>/**
<a name="line967"></a> * Returns whether the repeated_uint32 field has a value.
<a name="line968"></a> * @return {boolean} true if the field has a value.
<a name="line969"></a> */
<a name="line970"></a>proto2.TestAllTypes.prototype.hasRepeatedUint32 = function() {
<a name="line971"></a>  return this.has$Value(33);
<a name="line972"></a>};
<a name="line973"></a>
<a name="line974"></a>
<a name="line975"></a>/**
<a name="line976"></a> * Gets the number of values in the repeated_uint32 field.
<a name="line977"></a> * @return {number}
<a name="line978"></a> */
<a name="line979"></a>proto2.TestAllTypes.prototype.repeatedUint32Count = function() {
<a name="line980"></a>  return this.count$Values(33);
<a name="line981"></a>};
<a name="line982"></a>
<a name="line983"></a>
<a name="line984"></a>/**
<a name="line985"></a> * Clears the values in the repeated_uint32 field.
<a name="line986"></a> */
<a name="line987"></a>proto2.TestAllTypes.prototype.clearRepeatedUint32 = function() {
<a name="line988"></a>  this.clear$Field(33);
<a name="line989"></a>};
<a name="line990"></a>
<a name="line991"></a>
<a name="line992"></a>/**
<a name="line993"></a> * Gets the value of the repeated_uint64 field at the index given.
<a name="line994"></a> * @param {number} index The index to lookup.
<a name="line995"></a> * @return {number} The value.
<a name="line996"></a> */
<a name="line997"></a>proto2.TestAllTypes.prototype.getRepeatedUint64 = function(index) {
<a name="line998"></a>  return /** @type {number} */ (this.get$Value(34, index));
<a name="line999"></a>};
<a name="line1000"></a>
<a name="line1001"></a>
<a name="line1002"></a>/**
<a name="line1003"></a> * Adds a value to the repeated_uint64 field.
<a name="line1004"></a> * @param {number} value The value to add.
<a name="line1005"></a> */
<a name="line1006"></a>proto2.TestAllTypes.prototype.addRepeatedUint64 = function(value) {
<a name="line1007"></a>  this.add$Value(34, /** @type {Object} */ (value));
<a name="line1008"></a>};
<a name="line1009"></a>
<a name="line1010"></a>
<a name="line1011"></a>/**
<a name="line1012"></a> * Returns the array of values in the repeated_uint64 field.
<a name="line1013"></a> * @return {Array.&lt;number&gt;} The values in the field.
<a name="line1014"></a> */
<a name="line1015"></a>proto2.TestAllTypes.prototype.repeatedUint64Array = function() {
<a name="line1016"></a>  return /** @type {Array.&lt;number&gt;} */ (this.array$Values(34));
<a name="line1017"></a>};
<a name="line1018"></a>
<a name="line1019"></a>
<a name="line1020"></a>/**
<a name="line1021"></a> * Returns whether the repeated_uint64 field has a value.
<a name="line1022"></a> * @return {boolean} true if the field has a value.
<a name="line1023"></a> */
<a name="line1024"></a>proto2.TestAllTypes.prototype.hasRepeatedUint64 = function() {
<a name="line1025"></a>  return this.has$Value(34);
<a name="line1026"></a>};
<a name="line1027"></a>
<a name="line1028"></a>
<a name="line1029"></a>/**
<a name="line1030"></a> * Gets the number of values in the repeated_uint64 field.
<a name="line1031"></a> * @return {number}
<a name="line1032"></a> */
<a name="line1033"></a>proto2.TestAllTypes.prototype.repeatedUint64Count = function() {
<a name="line1034"></a>  return this.count$Values(34);
<a name="line1035"></a>};
<a name="line1036"></a>
<a name="line1037"></a>
<a name="line1038"></a>/**
<a name="line1039"></a> * Clears the values in the repeated_uint64 field.
<a name="line1040"></a> */
<a name="line1041"></a>proto2.TestAllTypes.prototype.clearRepeatedUint64 = function() {
<a name="line1042"></a>  this.clear$Field(34);
<a name="line1043"></a>};
<a name="line1044"></a>
<a name="line1045"></a>
<a name="line1046"></a>/**
<a name="line1047"></a> * Gets the value of the repeated_sint32 field at the index given.
<a name="line1048"></a> * @param {number} index The index to lookup.
<a name="line1049"></a> * @return {number} The value.
<a name="line1050"></a> */
<a name="line1051"></a>proto2.TestAllTypes.prototype.getRepeatedSint32 = function(index) {
<a name="line1052"></a>  return /** @type {number} */ (this.get$Value(35, index));
<a name="line1053"></a>};
<a name="line1054"></a>
<a name="line1055"></a>
<a name="line1056"></a>/**
<a name="line1057"></a> * Adds a value to the repeated_sint32 field.
<a name="line1058"></a> * @param {number} value The value to add.
<a name="line1059"></a> */
<a name="line1060"></a>proto2.TestAllTypes.prototype.addRepeatedSint32 = function(value) {
<a name="line1061"></a>  this.add$Value(35, /** @type {Object} */ (value));
<a name="line1062"></a>};
<a name="line1063"></a>
<a name="line1064"></a>
<a name="line1065"></a>/**
<a name="line1066"></a> * Returns the array of values in the repeated_sint32 field.
<a name="line1067"></a> * @return {Array.&lt;number&gt;} The values in the field.
<a name="line1068"></a> */
<a name="line1069"></a>proto2.TestAllTypes.prototype.repeatedSint32Array = function() {
<a name="line1070"></a>  return /** @type {Array.&lt;number&gt;} */ (this.array$Values(35));
<a name="line1071"></a>};
<a name="line1072"></a>
<a name="line1073"></a>
<a name="line1074"></a>/**
<a name="line1075"></a> * Returns whether the repeated_sint32 field has a value.
<a name="line1076"></a> * @return {boolean} true if the field has a value.
<a name="line1077"></a> */
<a name="line1078"></a>proto2.TestAllTypes.prototype.hasRepeatedSint32 = function() {
<a name="line1079"></a>  return this.has$Value(35);
<a name="line1080"></a>};
<a name="line1081"></a>
<a name="line1082"></a>
<a name="line1083"></a>/**
<a name="line1084"></a> * Gets the number of values in the repeated_sint32 field.
<a name="line1085"></a> * @return {number}
<a name="line1086"></a> */
<a name="line1087"></a>proto2.TestAllTypes.prototype.repeatedSint32Count = function() {
<a name="line1088"></a>  return this.count$Values(35);
<a name="line1089"></a>};
<a name="line1090"></a>
<a name="line1091"></a>
<a name="line1092"></a>/**
<a name="line1093"></a> * Clears the values in the repeated_sint32 field.
<a name="line1094"></a> */
<a name="line1095"></a>proto2.TestAllTypes.prototype.clearRepeatedSint32 = function() {
<a name="line1096"></a>  this.clear$Field(35);
<a name="line1097"></a>};
<a name="line1098"></a>
<a name="line1099"></a>
<a name="line1100"></a>/**
<a name="line1101"></a> * Gets the value of the repeated_sint64 field at the index given.
<a name="line1102"></a> * @param {number} index The index to lookup.
<a name="line1103"></a> * @return {number} The value.
<a name="line1104"></a> */
<a name="line1105"></a>proto2.TestAllTypes.prototype.getRepeatedSint64 = function(index) {
<a name="line1106"></a>  return /** @type {number} */ (this.get$Value(36, index));
<a name="line1107"></a>};
<a name="line1108"></a>
<a name="line1109"></a>
<a name="line1110"></a>/**
<a name="line1111"></a> * Adds a value to the repeated_sint64 field.
<a name="line1112"></a> * @param {number} value The value to add.
<a name="line1113"></a> */
<a name="line1114"></a>proto2.TestAllTypes.prototype.addRepeatedSint64 = function(value) {
<a name="line1115"></a>  this.add$Value(36, /** @type {Object} */ (value));
<a name="line1116"></a>};
<a name="line1117"></a>
<a name="line1118"></a>
<a name="line1119"></a>/**
<a name="line1120"></a> * Returns the array of values in the repeated_sint64 field.
<a name="line1121"></a> * @return {Array.&lt;number&gt;} The values in the field.
<a name="line1122"></a> */
<a name="line1123"></a>proto2.TestAllTypes.prototype.repeatedSint64Array = function() {
<a name="line1124"></a>  return /** @type {Array.&lt;number&gt;} */ (this.array$Values(36));
<a name="line1125"></a>};
<a name="line1126"></a>
<a name="line1127"></a>
<a name="line1128"></a>/**
<a name="line1129"></a> * Returns whether the repeated_sint64 field has a value.
<a name="line1130"></a> * @return {boolean} true if the field has a value.
<a name="line1131"></a> */
<a name="line1132"></a>proto2.TestAllTypes.prototype.hasRepeatedSint64 = function() {
<a name="line1133"></a>  return this.has$Value(36);
<a name="line1134"></a>};
<a name="line1135"></a>
<a name="line1136"></a>
<a name="line1137"></a>/**
<a name="line1138"></a> * Gets the number of values in the repeated_sint64 field.
<a name="line1139"></a> * @return {number}
<a name="line1140"></a> */
<a name="line1141"></a>proto2.TestAllTypes.prototype.repeatedSint64Count = function() {
<a name="line1142"></a>  return this.count$Values(36);
<a name="line1143"></a>};
<a name="line1144"></a>
<a name="line1145"></a>
<a name="line1146"></a>/**
<a name="line1147"></a> * Clears the values in the repeated_sint64 field.
<a name="line1148"></a> */
<a name="line1149"></a>proto2.TestAllTypes.prototype.clearRepeatedSint64 = function() {
<a name="line1150"></a>  this.clear$Field(36);
<a name="line1151"></a>};
<a name="line1152"></a>
<a name="line1153"></a>
<a name="line1154"></a>/**
<a name="line1155"></a> * Gets the value of the repeated_fixed32 field at the index given.
<a name="line1156"></a> * @param {number} index The index to lookup.
<a name="line1157"></a> * @return {number} The value.
<a name="line1158"></a> */
<a name="line1159"></a>proto2.TestAllTypes.prototype.getRepeatedFixed32 = function(index) {
<a name="line1160"></a>  return /** @type {number} */ (this.get$Value(37, index));
<a name="line1161"></a>};
<a name="line1162"></a>
<a name="line1163"></a>
<a name="line1164"></a>/**
<a name="line1165"></a> * Adds a value to the repeated_fixed32 field.
<a name="line1166"></a> * @param {number} value The value to add.
<a name="line1167"></a> */
<a name="line1168"></a>proto2.TestAllTypes.prototype.addRepeatedFixed32 = function(value) {
<a name="line1169"></a>  this.add$Value(37, /** @type {Object} */ (value));
<a name="line1170"></a>};
<a name="line1171"></a>
<a name="line1172"></a>
<a name="line1173"></a>/**
<a name="line1174"></a> * Returns the array of values in the repeated_fixed32 field.
<a name="line1175"></a> * @return {Array.&lt;number&gt;} The values in the field.
<a name="line1176"></a> */
<a name="line1177"></a>proto2.TestAllTypes.prototype.repeatedFixed32Array = function() {
<a name="line1178"></a>  return /** @type {Array.&lt;number&gt;} */ (this.array$Values(37));
<a name="line1179"></a>};
<a name="line1180"></a>
<a name="line1181"></a>
<a name="line1182"></a>/**
<a name="line1183"></a> * Returns whether the repeated_fixed32 field has a value.
<a name="line1184"></a> * @return {boolean} true if the field has a value.
<a name="line1185"></a> */
<a name="line1186"></a>proto2.TestAllTypes.prototype.hasRepeatedFixed32 = function() {
<a name="line1187"></a>  return this.has$Value(37);
<a name="line1188"></a>};
<a name="line1189"></a>
<a name="line1190"></a>
<a name="line1191"></a>/**
<a name="line1192"></a> * Gets the number of values in the repeated_fixed32 field.
<a name="line1193"></a> * @return {number}
<a name="line1194"></a> */
<a name="line1195"></a>proto2.TestAllTypes.prototype.repeatedFixed32Count = function() {
<a name="line1196"></a>  return this.count$Values(37);
<a name="line1197"></a>};
<a name="line1198"></a>
<a name="line1199"></a>
<a name="line1200"></a>/**
<a name="line1201"></a> * Clears the values in the repeated_fixed32 field.
<a name="line1202"></a> */
<a name="line1203"></a>proto2.TestAllTypes.prototype.clearRepeatedFixed32 = function() {
<a name="line1204"></a>  this.clear$Field(37);
<a name="line1205"></a>};
<a name="line1206"></a>
<a name="line1207"></a>
<a name="line1208"></a>/**
<a name="line1209"></a> * Gets the value of the repeated_fixed64 field at the index given.
<a name="line1210"></a> * @param {number} index The index to lookup.
<a name="line1211"></a> * @return {number} The value.
<a name="line1212"></a> */
<a name="line1213"></a>proto2.TestAllTypes.prototype.getRepeatedFixed64 = function(index) {
<a name="line1214"></a>  return /** @type {number} */ (this.get$Value(38, index));
<a name="line1215"></a>};
<a name="line1216"></a>
<a name="line1217"></a>
<a name="line1218"></a>/**
<a name="line1219"></a> * Adds a value to the repeated_fixed64 field.
<a name="line1220"></a> * @param {number} value The value to add.
<a name="line1221"></a> */
<a name="line1222"></a>proto2.TestAllTypes.prototype.addRepeatedFixed64 = function(value) {
<a name="line1223"></a>  this.add$Value(38, /** @type {Object} */ (value));
<a name="line1224"></a>};
<a name="line1225"></a>
<a name="line1226"></a>
<a name="line1227"></a>/**
<a name="line1228"></a> * Returns the array of values in the repeated_fixed64 field.
<a name="line1229"></a> * @return {Array.&lt;number&gt;} The values in the field.
<a name="line1230"></a> */
<a name="line1231"></a>proto2.TestAllTypes.prototype.repeatedFixed64Array = function() {
<a name="line1232"></a>  return /** @type {Array.&lt;number&gt;} */ (this.array$Values(38));
<a name="line1233"></a>};
<a name="line1234"></a>
<a name="line1235"></a>
<a name="line1236"></a>/**
<a name="line1237"></a> * Returns whether the repeated_fixed64 field has a value.
<a name="line1238"></a> * @return {boolean} true if the field has a value.
<a name="line1239"></a> */
<a name="line1240"></a>proto2.TestAllTypes.prototype.hasRepeatedFixed64 = function() {
<a name="line1241"></a>  return this.has$Value(38);
<a name="line1242"></a>};
<a name="line1243"></a>
<a name="line1244"></a>
<a name="line1245"></a>/**
<a name="line1246"></a> * Gets the number of values in the repeated_fixed64 field.
<a name="line1247"></a> * @return {number}
<a name="line1248"></a> */
<a name="line1249"></a>proto2.TestAllTypes.prototype.repeatedFixed64Count = function() {
<a name="line1250"></a>  return this.count$Values(38);
<a name="line1251"></a>};
<a name="line1252"></a>
<a name="line1253"></a>
<a name="line1254"></a>/**
<a name="line1255"></a> * Clears the values in the repeated_fixed64 field.
<a name="line1256"></a> */
<a name="line1257"></a>proto2.TestAllTypes.prototype.clearRepeatedFixed64 = function() {
<a name="line1258"></a>  this.clear$Field(38);
<a name="line1259"></a>};
<a name="line1260"></a>
<a name="line1261"></a>
<a name="line1262"></a>/**
<a name="line1263"></a> * Gets the value of the repeated_sfixed32 field at the index given.
<a name="line1264"></a> * @param {number} index The index to lookup.
<a name="line1265"></a> * @return {number} The value.
<a name="line1266"></a> */
<a name="line1267"></a>proto2.TestAllTypes.prototype.getRepeatedSfixed32 = function(index) {
<a name="line1268"></a>  return /** @type {number} */ (this.get$Value(39, index));
<a name="line1269"></a>};
<a name="line1270"></a>
<a name="line1271"></a>
<a name="line1272"></a>/**
<a name="line1273"></a> * Adds a value to the repeated_sfixed32 field.
<a name="line1274"></a> * @param {number} value The value to add.
<a name="line1275"></a> */
<a name="line1276"></a>proto2.TestAllTypes.prototype.addRepeatedSfixed32 = function(value) {
<a name="line1277"></a>  this.add$Value(39, /** @type {Object} */ (value));
<a name="line1278"></a>};
<a name="line1279"></a>
<a name="line1280"></a>
<a name="line1281"></a>/**
<a name="line1282"></a> * Returns the array of values in the repeated_sfixed32 field.
<a name="line1283"></a> * @return {Array.&lt;number&gt;} The values in the field.
<a name="line1284"></a> */
<a name="line1285"></a>proto2.TestAllTypes.prototype.repeatedSfixed32Array = function() {
<a name="line1286"></a>  return /** @type {Array.&lt;number&gt;} */ (this.array$Values(39));
<a name="line1287"></a>};
<a name="line1288"></a>
<a name="line1289"></a>
<a name="line1290"></a>/**
<a name="line1291"></a> * Returns whether the repeated_sfixed32 field has a value.
<a name="line1292"></a> * @return {boolean} true if the field has a value.
<a name="line1293"></a> */
<a name="line1294"></a>proto2.TestAllTypes.prototype.hasRepeatedSfixed32 = function() {
<a name="line1295"></a>  return this.has$Value(39);
<a name="line1296"></a>};
<a name="line1297"></a>
<a name="line1298"></a>
<a name="line1299"></a>/**
<a name="line1300"></a> * Gets the number of values in the repeated_sfixed32 field.
<a name="line1301"></a> * @return {number}
<a name="line1302"></a> */
<a name="line1303"></a>proto2.TestAllTypes.prototype.repeatedSfixed32Count = function() {
<a name="line1304"></a>  return this.count$Values(39);
<a name="line1305"></a>};
<a name="line1306"></a>
<a name="line1307"></a>
<a name="line1308"></a>/**
<a name="line1309"></a> * Clears the values in the repeated_sfixed32 field.
<a name="line1310"></a> */
<a name="line1311"></a>proto2.TestAllTypes.prototype.clearRepeatedSfixed32 = function() {
<a name="line1312"></a>  this.clear$Field(39);
<a name="line1313"></a>};
<a name="line1314"></a>
<a name="line1315"></a>
<a name="line1316"></a>/**
<a name="line1317"></a> * Gets the value of the repeated_sfixed64 field at the index given.
<a name="line1318"></a> * @param {number} index The index to lookup.
<a name="line1319"></a> * @return {number} The value.
<a name="line1320"></a> */
<a name="line1321"></a>proto2.TestAllTypes.prototype.getRepeatedSfixed64 = function(index) {
<a name="line1322"></a>  return /** @type {number} */ (this.get$Value(40, index));
<a name="line1323"></a>};
<a name="line1324"></a>
<a name="line1325"></a>
<a name="line1326"></a>/**
<a name="line1327"></a> * Adds a value to the repeated_sfixed64 field.
<a name="line1328"></a> * @param {number} value The value to add.
<a name="line1329"></a> */
<a name="line1330"></a>proto2.TestAllTypes.prototype.addRepeatedSfixed64 = function(value) {
<a name="line1331"></a>  this.add$Value(40, /** @type {Object} */ (value));
<a name="line1332"></a>};
<a name="line1333"></a>
<a name="line1334"></a>
<a name="line1335"></a>/**
<a name="line1336"></a> * Returns the array of values in the repeated_sfixed64 field.
<a name="line1337"></a> * @return {Array.&lt;number&gt;} The values in the field.
<a name="line1338"></a> */
<a name="line1339"></a>proto2.TestAllTypes.prototype.repeatedSfixed64Array = function() {
<a name="line1340"></a>  return /** @type {Array.&lt;number&gt;} */ (this.array$Values(40));
<a name="line1341"></a>};
<a name="line1342"></a>
<a name="line1343"></a>
<a name="line1344"></a>/**
<a name="line1345"></a> * Returns whether the repeated_sfixed64 field has a value.
<a name="line1346"></a> * @return {boolean} true if the field has a value.
<a name="line1347"></a> */
<a name="line1348"></a>proto2.TestAllTypes.prototype.hasRepeatedSfixed64 = function() {
<a name="line1349"></a>  return this.has$Value(40);
<a name="line1350"></a>};
<a name="line1351"></a>
<a name="line1352"></a>
<a name="line1353"></a>/**
<a name="line1354"></a> * Gets the number of values in the repeated_sfixed64 field.
<a name="line1355"></a> * @return {number}
<a name="line1356"></a> */
<a name="line1357"></a>proto2.TestAllTypes.prototype.repeatedSfixed64Count = function() {
<a name="line1358"></a>  return this.count$Values(40);
<a name="line1359"></a>};
<a name="line1360"></a>
<a name="line1361"></a>
<a name="line1362"></a>/**
<a name="line1363"></a> * Clears the values in the repeated_sfixed64 field.
<a name="line1364"></a> */
<a name="line1365"></a>proto2.TestAllTypes.prototype.clearRepeatedSfixed64 = function() {
<a name="line1366"></a>  this.clear$Field(40);
<a name="line1367"></a>};
<a name="line1368"></a>
<a name="line1369"></a>
<a name="line1370"></a>/**
<a name="line1371"></a> * Gets the value of the repeated_float field at the index given.
<a name="line1372"></a> * @param {number} index The index to lookup.
<a name="line1373"></a> * @return {number} The value.
<a name="line1374"></a> */
<a name="line1375"></a>proto2.TestAllTypes.prototype.getRepeatedFloat = function(index) {
<a name="line1376"></a>  return /** @type {number} */ (this.get$Value(41, index));
<a name="line1377"></a>};
<a name="line1378"></a>
<a name="line1379"></a>
<a name="line1380"></a>/**
<a name="line1381"></a> * Adds a value to the repeated_float field.
<a name="line1382"></a> * @param {number} value The value to add.
<a name="line1383"></a> */
<a name="line1384"></a>proto2.TestAllTypes.prototype.addRepeatedFloat = function(value) {
<a name="line1385"></a>  this.add$Value(41, /** @type {Object} */ (value));
<a name="line1386"></a>};
<a name="line1387"></a>
<a name="line1388"></a>
<a name="line1389"></a>/**
<a name="line1390"></a> * Returns the array of values in the repeated_float field.
<a name="line1391"></a> * @return {Array.&lt;number&gt;} The values in the field.
<a name="line1392"></a> */
<a name="line1393"></a>proto2.TestAllTypes.prototype.repeatedFloatArray = function() {
<a name="line1394"></a>  return /** @type {Array.&lt;number&gt;} */ (this.array$Values(41));
<a name="line1395"></a>};
<a name="line1396"></a>
<a name="line1397"></a>
<a name="line1398"></a>/**
<a name="line1399"></a> * Returns whether the repeated_float field has a value.
<a name="line1400"></a> * @return {boolean} true if the field has a value.
<a name="line1401"></a> */
<a name="line1402"></a>proto2.TestAllTypes.prototype.hasRepeatedFloat = function() {
<a name="line1403"></a>  return this.has$Value(41);
<a name="line1404"></a>};
<a name="line1405"></a>
<a name="line1406"></a>
<a name="line1407"></a>/**
<a name="line1408"></a> * Gets the number of values in the repeated_float field.
<a name="line1409"></a> * @return {number}
<a name="line1410"></a> */
<a name="line1411"></a>proto2.TestAllTypes.prototype.repeatedFloatCount = function() {
<a name="line1412"></a>  return this.count$Values(41);
<a name="line1413"></a>};
<a name="line1414"></a>
<a name="line1415"></a>
<a name="line1416"></a>/**
<a name="line1417"></a> * Clears the values in the repeated_float field.
<a name="line1418"></a> */
<a name="line1419"></a>proto2.TestAllTypes.prototype.clearRepeatedFloat = function() {
<a name="line1420"></a>  this.clear$Field(41);
<a name="line1421"></a>};
<a name="line1422"></a>
<a name="line1423"></a>
<a name="line1424"></a>/**
<a name="line1425"></a> * Gets the value of the repeated_double field at the index given.
<a name="line1426"></a> * @param {number} index The index to lookup.
<a name="line1427"></a> * @return {number} The value.
<a name="line1428"></a> */
<a name="line1429"></a>proto2.TestAllTypes.prototype.getRepeatedDouble = function(index) {
<a name="line1430"></a>  return /** @type {number} */ (this.get$Value(42, index));
<a name="line1431"></a>};
<a name="line1432"></a>
<a name="line1433"></a>
<a name="line1434"></a>/**
<a name="line1435"></a> * Adds a value to the repeated_double field.
<a name="line1436"></a> * @param {number} value The value to add.
<a name="line1437"></a> */
<a name="line1438"></a>proto2.TestAllTypes.prototype.addRepeatedDouble = function(value) {
<a name="line1439"></a>  this.add$Value(42, /** @type {Object} */ (value));
<a name="line1440"></a>};
<a name="line1441"></a>
<a name="line1442"></a>
<a name="line1443"></a>/**
<a name="line1444"></a> * Returns the array of values in the repeated_double field.
<a name="line1445"></a> * @return {Array.&lt;number&gt;} The values in the field.
<a name="line1446"></a> */
<a name="line1447"></a>proto2.TestAllTypes.prototype.repeatedDoubleArray = function() {
<a name="line1448"></a>  return /** @type {Array.&lt;number&gt;} */ (this.array$Values(42));
<a name="line1449"></a>};
<a name="line1450"></a>
<a name="line1451"></a>
<a name="line1452"></a>/**
<a name="line1453"></a> * Returns whether the repeated_double field has a value.
<a name="line1454"></a> * @return {boolean} true if the field has a value.
<a name="line1455"></a> */
<a name="line1456"></a>proto2.TestAllTypes.prototype.hasRepeatedDouble = function() {
<a name="line1457"></a>  return this.has$Value(42);
<a name="line1458"></a>};
<a name="line1459"></a>
<a name="line1460"></a>
<a name="line1461"></a>/**
<a name="line1462"></a> * Gets the number of values in the repeated_double field.
<a name="line1463"></a> * @return {number}
<a name="line1464"></a> */
<a name="line1465"></a>proto2.TestAllTypes.prototype.repeatedDoubleCount = function() {
<a name="line1466"></a>  return this.count$Values(42);
<a name="line1467"></a>};
<a name="line1468"></a>
<a name="line1469"></a>
<a name="line1470"></a>/**
<a name="line1471"></a> * Clears the values in the repeated_double field.
<a name="line1472"></a> */
<a name="line1473"></a>proto2.TestAllTypes.prototype.clearRepeatedDouble = function() {
<a name="line1474"></a>  this.clear$Field(42);
<a name="line1475"></a>};
<a name="line1476"></a>
<a name="line1477"></a>
<a name="line1478"></a>/**
<a name="line1479"></a> * Gets the value of the repeated_bool field at the index given.
<a name="line1480"></a> * @param {number} index The index to lookup.
<a name="line1481"></a> * @return {boolean} The value.
<a name="line1482"></a> */
<a name="line1483"></a>proto2.TestAllTypes.prototype.getRepeatedBool = function(index) {
<a name="line1484"></a>  return /** @type {boolean} */ (this.get$Value(43, index));
<a name="line1485"></a>};
<a name="line1486"></a>
<a name="line1487"></a>
<a name="line1488"></a>/**
<a name="line1489"></a> * Adds a value to the repeated_bool field.
<a name="line1490"></a> * @param {boolean} value The value to add.
<a name="line1491"></a> */
<a name="line1492"></a>proto2.TestAllTypes.prototype.addRepeatedBool = function(value) {
<a name="line1493"></a>  this.add$Value(43, /** @type {Object} */ (value));
<a name="line1494"></a>};
<a name="line1495"></a>
<a name="line1496"></a>
<a name="line1497"></a>/**
<a name="line1498"></a> * Returns the array of values in the repeated_bool field.
<a name="line1499"></a> * @return {Array.&lt;boolean&gt;} The values in the field.
<a name="line1500"></a> */
<a name="line1501"></a>proto2.TestAllTypes.prototype.repeatedBoolArray = function() {
<a name="line1502"></a>  return /** @type {Array.&lt;boolean&gt;} */ (this.array$Values(43));
<a name="line1503"></a>};
<a name="line1504"></a>
<a name="line1505"></a>
<a name="line1506"></a>/**
<a name="line1507"></a> * Returns whether the repeated_bool field has a value.
<a name="line1508"></a> * @return {boolean} true if the field has a value.
<a name="line1509"></a> */
<a name="line1510"></a>proto2.TestAllTypes.prototype.hasRepeatedBool = function() {
<a name="line1511"></a>  return this.has$Value(43);
<a name="line1512"></a>};
<a name="line1513"></a>
<a name="line1514"></a>
<a name="line1515"></a>/**
<a name="line1516"></a> * Gets the number of values in the repeated_bool field.
<a name="line1517"></a> * @return {number}
<a name="line1518"></a> */
<a name="line1519"></a>proto2.TestAllTypes.prototype.repeatedBoolCount = function() {
<a name="line1520"></a>  return this.count$Values(43);
<a name="line1521"></a>};
<a name="line1522"></a>
<a name="line1523"></a>
<a name="line1524"></a>/**
<a name="line1525"></a> * Clears the values in the repeated_bool field.
<a name="line1526"></a> */
<a name="line1527"></a>proto2.TestAllTypes.prototype.clearRepeatedBool = function() {
<a name="line1528"></a>  this.clear$Field(43);
<a name="line1529"></a>};
<a name="line1530"></a>
<a name="line1531"></a>
<a name="line1532"></a>/**
<a name="line1533"></a> * Gets the value of the repeated_string field at the index given.
<a name="line1534"></a> * @param {number} index The index to lookup.
<a name="line1535"></a> * @return {string} The value.
<a name="line1536"></a> */
<a name="line1537"></a>proto2.TestAllTypes.prototype.getRepeatedString = function(index) {
<a name="line1538"></a>  return /** @type {string} */ (this.get$Value(44, index));
<a name="line1539"></a>};
<a name="line1540"></a>
<a name="line1541"></a>
<a name="line1542"></a>/**
<a name="line1543"></a> * Adds a value to the repeated_string field.
<a name="line1544"></a> * @param {string} value The value to add.
<a name="line1545"></a> */
<a name="line1546"></a>proto2.TestAllTypes.prototype.addRepeatedString = function(value) {
<a name="line1547"></a>  this.add$Value(44, /** @type {Object} */ (value));
<a name="line1548"></a>};
<a name="line1549"></a>
<a name="line1550"></a>
<a name="line1551"></a>/**
<a name="line1552"></a> * Returns the array of values in the repeated_string field.
<a name="line1553"></a> * @return {Array.&lt;string&gt;} The values in the field.
<a name="line1554"></a> */
<a name="line1555"></a>proto2.TestAllTypes.prototype.repeatedStringArray = function() {
<a name="line1556"></a>  return /** @type {Array.&lt;string&gt;} */ (this.array$Values(44));
<a name="line1557"></a>};
<a name="line1558"></a>
<a name="line1559"></a>
<a name="line1560"></a>/**
<a name="line1561"></a> * Returns whether the repeated_string field has a value.
<a name="line1562"></a> * @return {boolean} true if the field has a value.
<a name="line1563"></a> */
<a name="line1564"></a>proto2.TestAllTypes.prototype.hasRepeatedString = function() {
<a name="line1565"></a>  return this.has$Value(44);
<a name="line1566"></a>};
<a name="line1567"></a>
<a name="line1568"></a>
<a name="line1569"></a>/**
<a name="line1570"></a> * Gets the number of values in the repeated_string field.
<a name="line1571"></a> * @return {number}
<a name="line1572"></a> */
<a name="line1573"></a>proto2.TestAllTypes.prototype.repeatedStringCount = function() {
<a name="line1574"></a>  return this.count$Values(44);
<a name="line1575"></a>};
<a name="line1576"></a>
<a name="line1577"></a>
<a name="line1578"></a>/**
<a name="line1579"></a> * Clears the values in the repeated_string field.
<a name="line1580"></a> */
<a name="line1581"></a>proto2.TestAllTypes.prototype.clearRepeatedString = function() {
<a name="line1582"></a>  this.clear$Field(44);
<a name="line1583"></a>};
<a name="line1584"></a>
<a name="line1585"></a>
<a name="line1586"></a>/**
<a name="line1587"></a> * Gets the value of the repeated_bytes field at the index given.
<a name="line1588"></a> * @param {number} index The index to lookup.
<a name="line1589"></a> * @return {string} The value.
<a name="line1590"></a> */
<a name="line1591"></a>proto2.TestAllTypes.prototype.getRepeatedBytes = function(index) {
<a name="line1592"></a>  return /** @type {string} */ (this.get$Value(45, index));
<a name="line1593"></a>};
<a name="line1594"></a>
<a name="line1595"></a>
<a name="line1596"></a>/**
<a name="line1597"></a> * Adds a value to the repeated_bytes field.
<a name="line1598"></a> * @param {string} value The value to add.
<a name="line1599"></a> */
<a name="line1600"></a>proto2.TestAllTypes.prototype.addRepeatedBytes = function(value) {
<a name="line1601"></a>  this.add$Value(45, /** @type {Object} */ (value));
<a name="line1602"></a>};
<a name="line1603"></a>
<a name="line1604"></a>
<a name="line1605"></a>/**
<a name="line1606"></a> * Returns the array of values in the repeated_bytes field.
<a name="line1607"></a> * @return {Array.&lt;string&gt;} The values in the field.
<a name="line1608"></a> */
<a name="line1609"></a>proto2.TestAllTypes.prototype.repeatedBytesArray = function() {
<a name="line1610"></a>  return /** @type {Array.&lt;string&gt;} */ (this.array$Values(45));
<a name="line1611"></a>};
<a name="line1612"></a>
<a name="line1613"></a>
<a name="line1614"></a>/**
<a name="line1615"></a> * Returns whether the repeated_bytes field has a value.
<a name="line1616"></a> * @return {boolean} true if the field has a value.
<a name="line1617"></a> */
<a name="line1618"></a>proto2.TestAllTypes.prototype.hasRepeatedBytes = function() {
<a name="line1619"></a>  return this.has$Value(45);
<a name="line1620"></a>};
<a name="line1621"></a>
<a name="line1622"></a>
<a name="line1623"></a>/**
<a name="line1624"></a> * Gets the number of values in the repeated_bytes field.
<a name="line1625"></a> * @return {number}
<a name="line1626"></a> */
<a name="line1627"></a>proto2.TestAllTypes.prototype.repeatedBytesCount = function() {
<a name="line1628"></a>  return this.count$Values(45);
<a name="line1629"></a>};
<a name="line1630"></a>
<a name="line1631"></a>
<a name="line1632"></a>/**
<a name="line1633"></a> * Clears the values in the repeated_bytes field.
<a name="line1634"></a> */
<a name="line1635"></a>proto2.TestAllTypes.prototype.clearRepeatedBytes = function() {
<a name="line1636"></a>  this.clear$Field(45);
<a name="line1637"></a>};
<a name="line1638"></a>
<a name="line1639"></a>
<a name="line1640"></a>/**
<a name="line1641"></a> * Gets the value of the repeatedgroup field at the index given.
<a name="line1642"></a> * @param {number} index The index to lookup.
<a name="line1643"></a> * @return {proto2.TestAllTypes.RepeatedGroup} The value.
<a name="line1644"></a> */
<a name="line1645"></a>proto2.TestAllTypes.prototype.getRepeatedgroup = function(index) {
<a name="line1646"></a>  return /** @type {proto2.TestAllTypes.RepeatedGroup} */ (this.get$Value(46, index));
<a name="line1647"></a>};
<a name="line1648"></a>
<a name="line1649"></a>
<a name="line1650"></a>/**
<a name="line1651"></a> * Adds a value to the repeatedgroup field.
<a name="line1652"></a> * @param {proto2.TestAllTypes.RepeatedGroup} value The value to add.
<a name="line1653"></a> */
<a name="line1654"></a>proto2.TestAllTypes.prototype.addRepeatedgroup = function(value) {
<a name="line1655"></a>  this.add$Value(46, /** @type {Object} */ (value));
<a name="line1656"></a>};
<a name="line1657"></a>
<a name="line1658"></a>
<a name="line1659"></a>/**
<a name="line1660"></a> * Returns the array of values in the repeatedgroup field.
<a name="line1661"></a> * @return {Array.&lt;proto2.TestAllTypes.RepeatedGroup&gt;} The values in the field.
<a name="line1662"></a> */
<a name="line1663"></a>proto2.TestAllTypes.prototype.repeatedgroupArray = function() {
<a name="line1664"></a>  return /** @type {Array.&lt;proto2.TestAllTypes.RepeatedGroup&gt;} */ (this.array$Values(46));
<a name="line1665"></a>};
<a name="line1666"></a>
<a name="line1667"></a>
<a name="line1668"></a>/**
<a name="line1669"></a> * Returns whether the repeatedgroup field has a value.
<a name="line1670"></a> * @return {boolean} true if the field has a value.
<a name="line1671"></a> */
<a name="line1672"></a>proto2.TestAllTypes.prototype.hasRepeatedgroup = function() {
<a name="line1673"></a>  return this.has$Value(46);
<a name="line1674"></a>};
<a name="line1675"></a>
<a name="line1676"></a>
<a name="line1677"></a>/**
<a name="line1678"></a> * Gets the number of values in the repeatedgroup field.
<a name="line1679"></a> * @return {number}
<a name="line1680"></a> */
<a name="line1681"></a>proto2.TestAllTypes.prototype.repeatedgroupCount = function() {
<a name="line1682"></a>  return this.count$Values(46);
<a name="line1683"></a>};
<a name="line1684"></a>
<a name="line1685"></a>
<a name="line1686"></a>/**
<a name="line1687"></a> * Clears the values in the repeatedgroup field.
<a name="line1688"></a> */
<a name="line1689"></a>proto2.TestAllTypes.prototype.clearRepeatedgroup = function() {
<a name="line1690"></a>  this.clear$Field(46);
<a name="line1691"></a>};
<a name="line1692"></a>
<a name="line1693"></a>
<a name="line1694"></a>/**
<a name="line1695"></a> * Gets the value of the repeated_nested_message field at the index given.
<a name="line1696"></a> * @param {number} index The index to lookup.
<a name="line1697"></a> * @return {proto2.TestAllTypes.NestedMessage} The value.
<a name="line1698"></a> */
<a name="line1699"></a>proto2.TestAllTypes.prototype.getRepeatedNestedMessage = function(index) {
<a name="line1700"></a>  return /** @type {proto2.TestAllTypes.NestedMessage} */ (this.get$Value(48, index));
<a name="line1701"></a>};
<a name="line1702"></a>
<a name="line1703"></a>
<a name="line1704"></a>/**
<a name="line1705"></a> * Adds a value to the repeated_nested_message field.
<a name="line1706"></a> * @param {proto2.TestAllTypes.NestedMessage} value The value to add.
<a name="line1707"></a> */
<a name="line1708"></a>proto2.TestAllTypes.prototype.addRepeatedNestedMessage = function(value) {
<a name="line1709"></a>  this.add$Value(48, /** @type {Object} */ (value));
<a name="line1710"></a>};
<a name="line1711"></a>
<a name="line1712"></a>
<a name="line1713"></a>/**
<a name="line1714"></a> * Returns the array of values in the repeated_nested_message field.
<a name="line1715"></a> * @return {Array.&lt;proto2.TestAllTypes.NestedMessage&gt;} The values in the field.
<a name="line1716"></a> */
<a name="line1717"></a>proto2.TestAllTypes.prototype.repeatedNestedMessageArray = function() {
<a name="line1718"></a>  return /** @type {Array.&lt;proto2.TestAllTypes.NestedMessage&gt;} */ (this.array$Values(48));
<a name="line1719"></a>};
<a name="line1720"></a>
<a name="line1721"></a>
<a name="line1722"></a>/**
<a name="line1723"></a> * Returns whether the repeated_nested_message field has a value.
<a name="line1724"></a> * @return {boolean} true if the field has a value.
<a name="line1725"></a> */
<a name="line1726"></a>proto2.TestAllTypes.prototype.hasRepeatedNestedMessage = function() {
<a name="line1727"></a>  return this.has$Value(48);
<a name="line1728"></a>};
<a name="line1729"></a>
<a name="line1730"></a>
<a name="line1731"></a>/**
<a name="line1732"></a> * Gets the number of values in the repeated_nested_message field.
<a name="line1733"></a> * @return {number}
<a name="line1734"></a> */
<a name="line1735"></a>proto2.TestAllTypes.prototype.repeatedNestedMessageCount = function() {
<a name="line1736"></a>  return this.count$Values(48);
<a name="line1737"></a>};
<a name="line1738"></a>
<a name="line1739"></a>
<a name="line1740"></a>/**
<a name="line1741"></a> * Clears the values in the repeated_nested_message field.
<a name="line1742"></a> */
<a name="line1743"></a>proto2.TestAllTypes.prototype.clearRepeatedNestedMessage = function() {
<a name="line1744"></a>  this.clear$Field(48);
<a name="line1745"></a>};
<a name="line1746"></a>
<a name="line1747"></a>
<a name="line1748"></a>/**
<a name="line1749"></a> * Gets the value of the repeated_nested_enum field at the index given.
<a name="line1750"></a> * @param {number} index The index to lookup.
<a name="line1751"></a> * @return {proto2.TestAllTypes.NestedEnum} The value.
<a name="line1752"></a> */
<a name="line1753"></a>proto2.TestAllTypes.prototype.getRepeatedNestedEnum = function(index) {
<a name="line1754"></a>  return /** @type {proto2.TestAllTypes.NestedEnum} */ (this.get$Value(49, index));
<a name="line1755"></a>};
<a name="line1756"></a>
<a name="line1757"></a>
<a name="line1758"></a>/**
<a name="line1759"></a> * Adds a value to the repeated_nested_enum field.
<a name="line1760"></a> * @param {proto2.TestAllTypes.NestedEnum} value The value to add.
<a name="line1761"></a> */
<a name="line1762"></a>proto2.TestAllTypes.prototype.addRepeatedNestedEnum = function(value) {
<a name="line1763"></a>  this.add$Value(49, /** @type {Object} */ (value));
<a name="line1764"></a>};
<a name="line1765"></a>
<a name="line1766"></a>
<a name="line1767"></a>/**
<a name="line1768"></a> * Returns the array of values in the repeated_nested_enum field.
<a name="line1769"></a> * @return {Array.&lt;proto2.TestAllTypes.NestedEnum&gt;} The values in the field.
<a name="line1770"></a> */
<a name="line1771"></a>proto2.TestAllTypes.prototype.repeatedNestedEnumArray = function() {
<a name="line1772"></a>  return /** @type {Array.&lt;proto2.TestAllTypes.NestedEnum&gt;} */ (this.array$Values(49));
<a name="line1773"></a>};
<a name="line1774"></a>
<a name="line1775"></a>
<a name="line1776"></a>/**
<a name="line1777"></a> * Returns whether the repeated_nested_enum field has a value.
<a name="line1778"></a> * @return {boolean} true if the field has a value.
<a name="line1779"></a> */
<a name="line1780"></a>proto2.TestAllTypes.prototype.hasRepeatedNestedEnum = function() {
<a name="line1781"></a>  return this.has$Value(49);
<a name="line1782"></a>};
<a name="line1783"></a>
<a name="line1784"></a>
<a name="line1785"></a>/**
<a name="line1786"></a> * Gets the number of values in the repeated_nested_enum field.
<a name="line1787"></a> * @return {number}
<a name="line1788"></a> */
<a name="line1789"></a>proto2.TestAllTypes.prototype.repeatedNestedEnumCount = function() {
<a name="line1790"></a>  return this.count$Values(49);
<a name="line1791"></a>};
<a name="line1792"></a>
<a name="line1793"></a>
<a name="line1794"></a>/**
<a name="line1795"></a> * Clears the values in the repeated_nested_enum field.
<a name="line1796"></a> */
<a name="line1797"></a>proto2.TestAllTypes.prototype.clearRepeatedNestedEnum = function() {
<a name="line1798"></a>  this.clear$Field(49);
<a name="line1799"></a>};
<a name="line1800"></a>
<a name="line1801"></a>
<a name="line1802"></a>/**
<a name="line1803"></a> * Enumeration NestedEnum.
<a name="line1804"></a> * @enum {number}
<a name="line1805"></a> */
<a name="line1806"></a>proto2.TestAllTypes.NestedEnum = {
<a name="line1807"></a>  FOO : 1,
<a name="line1808"></a>  BAR : 2,
<a name="line1809"></a>  BAZ : 3
<a name="line1810"></a>};
<a name="line1811"></a>
<a name="line1812"></a>/**
<a name="line1813"></a> * Message NestedMessage.
<a name="line1814"></a> * @constructor
<a name="line1815"></a> * @extends {goog.proto2.Message}
<a name="line1816"></a> */
<a name="line1817"></a>proto2.TestAllTypes.NestedMessage = function() {
<a name="line1818"></a>  goog.proto2.Message.apply(this);
<a name="line1819"></a>};
<a name="line1820"></a>
<a name="line1821"></a>goog.inherits(proto2.TestAllTypes.NestedMessage, goog.proto2.Message);
<a name="line1822"></a>
<a name="line1823"></a>/**
<a name="line1824"></a> * Gets the value of the b field.
<a name="line1825"></a> * @return {number} The value.
<a name="line1826"></a> */
<a name="line1827"></a>proto2.TestAllTypes.NestedMessage.prototype.getB = function() {
<a name="line1828"></a>  return /** @type {number} */ (this.get$Value(1));
<a name="line1829"></a>};
<a name="line1830"></a>
<a name="line1831"></a>
<a name="line1832"></a>/**
<a name="line1833"></a> * Sets the value of the b field.
<a name="line1834"></a> * @param {number} value The value.
<a name="line1835"></a> */
<a name="line1836"></a>proto2.TestAllTypes.NestedMessage.prototype.setB = function(value) {
<a name="line1837"></a>  this.set$Value(1, /** @type {Object} */ (value));
<a name="line1838"></a>};
<a name="line1839"></a>
<a name="line1840"></a>
<a name="line1841"></a>/**
<a name="line1842"></a> * Returns whether the b field has a value.
<a name="line1843"></a> * @return {boolean} true if the field has a value.
<a name="line1844"></a> */
<a name="line1845"></a>proto2.TestAllTypes.NestedMessage.prototype.hasB = function() {
<a name="line1846"></a>  return this.has$Value(1);
<a name="line1847"></a>};
<a name="line1848"></a>
<a name="line1849"></a>
<a name="line1850"></a>/**
<a name="line1851"></a> * Gets the number of values in the b field.
<a name="line1852"></a> * @return {number}
<a name="line1853"></a> */
<a name="line1854"></a>proto2.TestAllTypes.NestedMessage.prototype.bCount = function() {
<a name="line1855"></a>  return this.count$Values(1);
<a name="line1856"></a>};
<a name="line1857"></a>
<a name="line1858"></a>
<a name="line1859"></a>/**
<a name="line1860"></a> * Clears the values in the b field.
<a name="line1861"></a> */
<a name="line1862"></a>proto2.TestAllTypes.NestedMessage.prototype.clearB = function() {
<a name="line1863"></a>  this.clear$Field(1);
<a name="line1864"></a>};
<a name="line1865"></a>
<a name="line1866"></a>
<a name="line1867"></a>
<a name="line1868"></a>
<a name="line1869"></a>/**
<a name="line1870"></a> * Message OptionalGroup.
<a name="line1871"></a> * @constructor
<a name="line1872"></a> * @extends {goog.proto2.Message}
<a name="line1873"></a> */
<a name="line1874"></a>proto2.TestAllTypes.OptionalGroup = function() {
<a name="line1875"></a>  goog.proto2.Message.apply(this);
<a name="line1876"></a>};
<a name="line1877"></a>
<a name="line1878"></a>goog.inherits(proto2.TestAllTypes.OptionalGroup, goog.proto2.Message);
<a name="line1879"></a>
<a name="line1880"></a>/**
<a name="line1881"></a> * Gets the value of the a field.
<a name="line1882"></a> * @return {number} The value.
<a name="line1883"></a> */
<a name="line1884"></a>proto2.TestAllTypes.OptionalGroup.prototype.getA = function() {
<a name="line1885"></a>  return /** @type {number} */ (this.get$Value(17));
<a name="line1886"></a>};
<a name="line1887"></a>
<a name="line1888"></a>
<a name="line1889"></a>/**
<a name="line1890"></a> * Sets the value of the a field.
<a name="line1891"></a> * @param {number} value The value.
<a name="line1892"></a> */
<a name="line1893"></a>proto2.TestAllTypes.OptionalGroup.prototype.setA = function(value) {
<a name="line1894"></a>  this.set$Value(17, /** @type {Object} */ (value));
<a name="line1895"></a>};
<a name="line1896"></a>
<a name="line1897"></a>
<a name="line1898"></a>/**
<a name="line1899"></a> * Returns whether the a field has a value.
<a name="line1900"></a> * @return {boolean} true if the field has a value.
<a name="line1901"></a> */
<a name="line1902"></a>proto2.TestAllTypes.OptionalGroup.prototype.hasA = function() {
<a name="line1903"></a>  return this.has$Value(17);
<a name="line1904"></a>};
<a name="line1905"></a>
<a name="line1906"></a>
<a name="line1907"></a>/**
<a name="line1908"></a> * Gets the number of values in the a field.
<a name="line1909"></a> * @return {number}
<a name="line1910"></a> */
<a name="line1911"></a>proto2.TestAllTypes.OptionalGroup.prototype.aCount = function() {
<a name="line1912"></a>  return this.count$Values(17);
<a name="line1913"></a>};
<a name="line1914"></a>
<a name="line1915"></a>
<a name="line1916"></a>/**
<a name="line1917"></a> * Clears the values in the a field.
<a name="line1918"></a> */
<a name="line1919"></a>proto2.TestAllTypes.OptionalGroup.prototype.clearA = function() {
<a name="line1920"></a>  this.clear$Field(17);
<a name="line1921"></a>};
<a name="line1922"></a>
<a name="line1923"></a>
<a name="line1924"></a>
<a name="line1925"></a>
<a name="line1926"></a>/**
<a name="line1927"></a> * Message RepeatedGroup.
<a name="line1928"></a> * @constructor
<a name="line1929"></a> * @extends {goog.proto2.Message}
<a name="line1930"></a> */
<a name="line1931"></a>proto2.TestAllTypes.RepeatedGroup = function() {
<a name="line1932"></a>  goog.proto2.Message.apply(this);
<a name="line1933"></a>};
<a name="line1934"></a>
<a name="line1935"></a>goog.inherits(proto2.TestAllTypes.RepeatedGroup, goog.proto2.Message);
<a name="line1936"></a>
<a name="line1937"></a>/**
<a name="line1938"></a> * Gets the value of the a field at the index given.
<a name="line1939"></a> * @param {number} index The index to lookup.
<a name="line1940"></a> * @return {number} The value.
<a name="line1941"></a> */
<a name="line1942"></a>proto2.TestAllTypes.RepeatedGroup.prototype.getA = function(index) {
<a name="line1943"></a>  return /** @type {number} */ (this.get$Value(47, index));
<a name="line1944"></a>};
<a name="line1945"></a>
<a name="line1946"></a>
<a name="line1947"></a>/**
<a name="line1948"></a> * Adds a value to the a field.
<a name="line1949"></a> * @param {number} value The value to add.
<a name="line1950"></a> */
<a name="line1951"></a>proto2.TestAllTypes.RepeatedGroup.prototype.addA = function(value) {
<a name="line1952"></a>  this.add$Value(47, /** @type {Object} */ (value));
<a name="line1953"></a>};
<a name="line1954"></a>
<a name="line1955"></a>
<a name="line1956"></a>/**
<a name="line1957"></a> * Returns the array of values in the a field.
<a name="line1958"></a> * @return {Array.&lt;number&gt;} The values in the field.
<a name="line1959"></a> */
<a name="line1960"></a>proto2.TestAllTypes.RepeatedGroup.prototype.aArray = function() {
<a name="line1961"></a>  return /** @type {Array.&lt;number&gt;} */ (this.array$Values(47));
<a name="line1962"></a>};
<a name="line1963"></a>
<a name="line1964"></a>
<a name="line1965"></a>/**
<a name="line1966"></a> * Returns whether the a field has a value.
<a name="line1967"></a> * @return {boolean} true if the field has a value.
<a name="line1968"></a> */
<a name="line1969"></a>proto2.TestAllTypes.RepeatedGroup.prototype.hasA = function() {
<a name="line1970"></a>  return this.has$Value(47);
<a name="line1971"></a>};
<a name="line1972"></a>
<a name="line1973"></a>
<a name="line1974"></a>/**
<a name="line1975"></a> * Gets the number of values in the a field.
<a name="line1976"></a> * @return {number}
<a name="line1977"></a> */
<a name="line1978"></a>proto2.TestAllTypes.RepeatedGroup.prototype.aCount = function() {
<a name="line1979"></a>  return this.count$Values(47);
<a name="line1980"></a>};
<a name="line1981"></a>
<a name="line1982"></a>
<a name="line1983"></a>/**
<a name="line1984"></a> * Clears the values in the a field.
<a name="line1985"></a> */
<a name="line1986"></a>proto2.TestAllTypes.RepeatedGroup.prototype.clearA = function() {
<a name="line1987"></a>  this.clear$Field(47);
<a name="line1988"></a>};
<a name="line1989"></a>
<a name="line1990"></a>
<a name="line1991"></a>
<a name="line1992"></a>
<a name="line1993"></a>
<a name="line1994"></a>
<a name="line1995"></a>goog.proto2.Message.set$Metadata(proto2.TestAllTypes, {
<a name="line1996"></a>  0 : {
<a name="line1997"></a>    name: &#39;TestAllTypes&#39;,
<a name="line1998"></a>    fullName: &#39;proto2.TestAllTypes&#39;
<a name="line1999"></a>  },
<a name="line2000"></a>  &#39;1&#39; : {
<a name="line2001"></a>    name: &#39;optional_int32&#39;,
<a name="line2002"></a>    fieldType: goog.proto2.Message.FieldType.INT32,
<a name="line2003"></a>    type: Number
<a name="line2004"></a>  },
<a name="line2005"></a>  &#39;2&#39; : {
<a name="line2006"></a>    name: &#39;optional_int64&#39;,
<a name="line2007"></a>    fieldType: goog.proto2.Message.FieldType.INT64,
<a name="line2008"></a>    defaultValue: 1,
<a name="line2009"></a>    type: Number
<a name="line2010"></a>  },
<a name="line2011"></a>  &#39;3&#39; : {
<a name="line2012"></a>    name: &#39;optional_uint32&#39;,
<a name="line2013"></a>    fieldType: goog.proto2.Message.FieldType.UINT32,
<a name="line2014"></a>    type: Number
<a name="line2015"></a>  },
<a name="line2016"></a>  &#39;4&#39; : {
<a name="line2017"></a>    name: &#39;optional_uint64&#39;,
<a name="line2018"></a>    fieldType: goog.proto2.Message.FieldType.UINT64,
<a name="line2019"></a>    type: Number
<a name="line2020"></a>  },
<a name="line2021"></a>  &#39;5&#39; : {
<a name="line2022"></a>    name: &#39;optional_sint32&#39;,
<a name="line2023"></a>    fieldType: goog.proto2.Message.FieldType.SINT32,
<a name="line2024"></a>    type: Number
<a name="line2025"></a>  },
<a name="line2026"></a>  &#39;6&#39; : {
<a name="line2027"></a>    name: &#39;optional_sint64&#39;,
<a name="line2028"></a>    fieldType: goog.proto2.Message.FieldType.SINT64,
<a name="line2029"></a>    type: Number
<a name="line2030"></a>  },
<a name="line2031"></a>  &#39;7&#39; : {
<a name="line2032"></a>    name: &#39;optional_fixed32&#39;,
<a name="line2033"></a>    fieldType: goog.proto2.Message.FieldType.FIXED32,
<a name="line2034"></a>    type: Number
<a name="line2035"></a>  },
<a name="line2036"></a>  &#39;8&#39; : {
<a name="line2037"></a>    name: &#39;optional_fixed64&#39;,
<a name="line2038"></a>    fieldType: goog.proto2.Message.FieldType.FIXED64,
<a name="line2039"></a>    type: Number
<a name="line2040"></a>  },
<a name="line2041"></a>  &#39;9&#39; : {
<a name="line2042"></a>    name: &#39;optional_sfixed32&#39;,
<a name="line2043"></a>    fieldType: goog.proto2.Message.FieldType.SFIXED32,
<a name="line2044"></a>    type: Number
<a name="line2045"></a>  },
<a name="line2046"></a>  &#39;10&#39; : {
<a name="line2047"></a>    name: &#39;optional_sfixed64&#39;,
<a name="line2048"></a>    fieldType: goog.proto2.Message.FieldType.SFIXED64,
<a name="line2049"></a>    type: Number
<a name="line2050"></a>  },
<a name="line2051"></a>  &#39;11&#39; : {
<a name="line2052"></a>    name: &#39;optional_float&#39;,
<a name="line2053"></a>    fieldType: goog.proto2.Message.FieldType.FLOAT,
<a name="line2054"></a>    defaultValue: 1.5,
<a name="line2055"></a>    type: Number
<a name="line2056"></a>  },
<a name="line2057"></a>  &#39;12&#39; : {
<a name="line2058"></a>    name: &#39;optional_double&#39;,
<a name="line2059"></a>    fieldType: goog.proto2.Message.FieldType.DOUBLE,
<a name="line2060"></a>    type: Number
<a name="line2061"></a>  },
<a name="line2062"></a>  &#39;13&#39; : {
<a name="line2063"></a>    name: &#39;optional_bool&#39;,
<a name="line2064"></a>    fieldType: goog.proto2.Message.FieldType.BOOL,
<a name="line2065"></a>    type: Boolean
<a name="line2066"></a>  },
<a name="line2067"></a>  &#39;14&#39; : {
<a name="line2068"></a>    name: &#39;optional_string&#39;,
<a name="line2069"></a>    fieldType: goog.proto2.Message.FieldType.STRING,
<a name="line2070"></a>    type: String
<a name="line2071"></a>  },
<a name="line2072"></a>  &#39;15&#39; : {
<a name="line2073"></a>    name: &#39;optional_bytes&#39;,
<a name="line2074"></a>    fieldType: goog.proto2.Message.FieldType.BYTES,
<a name="line2075"></a>    defaultValue: &quot;moo&quot;,
<a name="line2076"></a>    type: String
<a name="line2077"></a>  },
<a name="line2078"></a>  &#39;16&#39; : {
<a name="line2079"></a>    name: &#39;optionalgroup&#39;,
<a name="line2080"></a>    fieldType: goog.proto2.Message.FieldType.GROUP,
<a name="line2081"></a>    type: proto2.TestAllTypes.OptionalGroup
<a name="line2082"></a>  },
<a name="line2083"></a>  &#39;18&#39; : {
<a name="line2084"></a>    name: &#39;optional_nested_message&#39;,
<a name="line2085"></a>    fieldType: goog.proto2.Message.FieldType.MESSAGE,
<a name="line2086"></a>    type: proto2.TestAllTypes.NestedMessage
<a name="line2087"></a>  },
<a name="line2088"></a>  &#39;21&#39; : {
<a name="line2089"></a>    name: &#39;optional_nested_enum&#39;,
<a name="line2090"></a>    fieldType: goog.proto2.Message.FieldType.ENUM,
<a name="line2091"></a>    defaultValue: proto2.TestAllTypes.NestedEnum.FOO,
<a name="line2092"></a>    type: proto2.TestAllTypes.NestedEnum
<a name="line2093"></a>  },
<a name="line2094"></a>  &#39;31&#39; : {
<a name="line2095"></a>    name: &#39;repeated_int32&#39;,
<a name="line2096"></a>    repeated: true,
<a name="line2097"></a>    fieldType: goog.proto2.Message.FieldType.INT32,
<a name="line2098"></a>    type: Number
<a name="line2099"></a>  },
<a name="line2100"></a>  &#39;32&#39; : {
<a name="line2101"></a>    name: &#39;repeated_int64&#39;,
<a name="line2102"></a>    repeated: true,
<a name="line2103"></a>    fieldType: goog.proto2.Message.FieldType.INT64,
<a name="line2104"></a>    type: Number
<a name="line2105"></a>  },
<a name="line2106"></a>  &#39;33&#39; : {
<a name="line2107"></a>    name: &#39;repeated_uint32&#39;,
<a name="line2108"></a>    repeated: true,
<a name="line2109"></a>    fieldType: goog.proto2.Message.FieldType.UINT32,
<a name="line2110"></a>    type: Number
<a name="line2111"></a>  },
<a name="line2112"></a>  &#39;34&#39; : {
<a name="line2113"></a>    name: &#39;repeated_uint64&#39;,
<a name="line2114"></a>    repeated: true,
<a name="line2115"></a>    fieldType: goog.proto2.Message.FieldType.UINT64,
<a name="line2116"></a>    type: Number
<a name="line2117"></a>  },
<a name="line2118"></a>  &#39;35&#39; : {
<a name="line2119"></a>    name: &#39;repeated_sint32&#39;,
<a name="line2120"></a>    repeated: true,
<a name="line2121"></a>    fieldType: goog.proto2.Message.FieldType.SINT32,
<a name="line2122"></a>    type: Number
<a name="line2123"></a>  },
<a name="line2124"></a>  &#39;36&#39; : {
<a name="line2125"></a>    name: &#39;repeated_sint64&#39;,
<a name="line2126"></a>    repeated: true,
<a name="line2127"></a>    fieldType: goog.proto2.Message.FieldType.SINT64,
<a name="line2128"></a>    type: Number
<a name="line2129"></a>  },
<a name="line2130"></a>  &#39;37&#39; : {
<a name="line2131"></a>    name: &#39;repeated_fixed32&#39;,
<a name="line2132"></a>    repeated: true,
<a name="line2133"></a>    fieldType: goog.proto2.Message.FieldType.FIXED32,
<a name="line2134"></a>    type: Number
<a name="line2135"></a>  },
<a name="line2136"></a>  &#39;38&#39; : {
<a name="line2137"></a>    name: &#39;repeated_fixed64&#39;,
<a name="line2138"></a>    repeated: true,
<a name="line2139"></a>    fieldType: goog.proto2.Message.FieldType.FIXED64,
<a name="line2140"></a>    type: Number
<a name="line2141"></a>  },
<a name="line2142"></a>  &#39;39&#39; : {
<a name="line2143"></a>    name: &#39;repeated_sfixed32&#39;,
<a name="line2144"></a>    repeated: true,
<a name="line2145"></a>    fieldType: goog.proto2.Message.FieldType.SFIXED32,
<a name="line2146"></a>    type: Number
<a name="line2147"></a>  },
<a name="line2148"></a>  &#39;40&#39; : {
<a name="line2149"></a>    name: &#39;repeated_sfixed64&#39;,
<a name="line2150"></a>    repeated: true,
<a name="line2151"></a>    fieldType: goog.proto2.Message.FieldType.SFIXED64,
<a name="line2152"></a>    type: Number
<a name="line2153"></a>  },
<a name="line2154"></a>  &#39;41&#39; : {
<a name="line2155"></a>    name: &#39;repeated_float&#39;,
<a name="line2156"></a>    repeated: true,
<a name="line2157"></a>    fieldType: goog.proto2.Message.FieldType.FLOAT,
<a name="line2158"></a>    type: Number
<a name="line2159"></a>  },
<a name="line2160"></a>  &#39;42&#39; : {
<a name="line2161"></a>    name: &#39;repeated_double&#39;,
<a name="line2162"></a>    repeated: true,
<a name="line2163"></a>    fieldType: goog.proto2.Message.FieldType.DOUBLE,
<a name="line2164"></a>    type: Number
<a name="line2165"></a>  },
<a name="line2166"></a>  &#39;43&#39; : {
<a name="line2167"></a>    name: &#39;repeated_bool&#39;,
<a name="line2168"></a>    repeated: true,
<a name="line2169"></a>    fieldType: goog.proto2.Message.FieldType.BOOL,
<a name="line2170"></a>    type: Boolean
<a name="line2171"></a>  },
<a name="line2172"></a>  &#39;44&#39; : {
<a name="line2173"></a>    name: &#39;repeated_string&#39;,
<a name="line2174"></a>    repeated: true,
<a name="line2175"></a>    fieldType: goog.proto2.Message.FieldType.STRING,
<a name="line2176"></a>    type: String
<a name="line2177"></a>  },
<a name="line2178"></a>  &#39;45&#39; : {
<a name="line2179"></a>    name: &#39;repeated_bytes&#39;,
<a name="line2180"></a>    repeated: true,
<a name="line2181"></a>    fieldType: goog.proto2.Message.FieldType.BYTES,
<a name="line2182"></a>    type: String
<a name="line2183"></a>  },
<a name="line2184"></a>  &#39;46&#39; : {
<a name="line2185"></a>    name: &#39;repeatedgroup&#39;,
<a name="line2186"></a>    repeated: true,
<a name="line2187"></a>    fieldType: goog.proto2.Message.FieldType.GROUP,
<a name="line2188"></a>    type: proto2.TestAllTypes.RepeatedGroup
<a name="line2189"></a>  },
<a name="line2190"></a>  &#39;48&#39; : {
<a name="line2191"></a>    name: &#39;repeated_nested_message&#39;,
<a name="line2192"></a>    repeated: true,
<a name="line2193"></a>    fieldType: goog.proto2.Message.FieldType.MESSAGE,
<a name="line2194"></a>    type: proto2.TestAllTypes.NestedMessage
<a name="line2195"></a>  },
<a name="line2196"></a>  &#39;49&#39; : {
<a name="line2197"></a>    name: &#39;repeated_nested_enum&#39;,
<a name="line2198"></a>    repeated: true,
<a name="line2199"></a>    fieldType: goog.proto2.Message.FieldType.ENUM,
<a name="line2200"></a>    defaultValue: proto2.TestAllTypes.NestedEnum.FOO,
<a name="line2201"></a>    type: proto2.TestAllTypes.NestedEnum
<a name="line2202"></a>  }});
<a name="line2203"></a>
<a name="line2204"></a>goog.proto2.Message.set$Metadata(proto2.TestAllTypes.NestedMessage, {
<a name="line2205"></a>  0 : {
<a name="line2206"></a>    name: &#39;NestedMessage&#39;,
<a name="line2207"></a>    containingType: proto2.TestAllTypes,
<a name="line2208"></a>    fullName: &#39;proto2.TestAllTypes.NestedMessage&#39;
<a name="line2209"></a>  },
<a name="line2210"></a>  &#39;1&#39; : {
<a name="line2211"></a>    name: &#39;b&#39;,
<a name="line2212"></a>    fieldType: goog.proto2.Message.FieldType.INT32,
<a name="line2213"></a>    type: Number
<a name="line2214"></a>  }});
<a name="line2215"></a>
<a name="line2216"></a>goog.proto2.Message.set$Metadata(proto2.TestAllTypes.OptionalGroup, {
<a name="line2217"></a>  0 : {
<a name="line2218"></a>    name: &#39;OptionalGroup&#39;,
<a name="line2219"></a>    containingType: proto2.TestAllTypes,
<a name="line2220"></a>    fullName: &#39;proto2.TestAllTypes.OptionalGroup&#39;
<a name="line2221"></a>  },
<a name="line2222"></a>  &#39;17&#39; : {
<a name="line2223"></a>    name: &#39;a&#39;,
<a name="line2224"></a>    fieldType: goog.proto2.Message.FieldType.INT32,
<a name="line2225"></a>    type: Number
<a name="line2226"></a>  }});
<a name="line2227"></a>
<a name="line2228"></a>goog.proto2.Message.set$Metadata(proto2.TestAllTypes.RepeatedGroup, {
<a name="line2229"></a>  0 : {
<a name="line2230"></a>    name: &#39;RepeatedGroup&#39;,
<a name="line2231"></a>    containingType: proto2.TestAllTypes,
<a name="line2232"></a>    fullName: &#39;proto2.TestAllTypes.RepeatedGroup&#39;
<a name="line2233"></a>  },
<a name="line2234"></a>  &#39;47&#39; : {
<a name="line2235"></a>    name: &#39;a&#39;,
<a name="line2236"></a>    repeated: true,
<a name="line2237"></a>    fieldType: goog.proto2.Message.FieldType.INT32,
<a name="line2238"></a>    type: Number
<a name="line2239"></a>  }});
</pre>


</body>
</html>
